Fix negative gvars precision (#6321)
[opentx.git] / .travis.yml
blob6b26b9cbefcf2ee4a16b8415ad42ff22de8fe978
1 sudo: required
2 dist: trusty
3 language: cpp
4 compiler: gcc
6 env:
7   global:
8     # - QT_BASE=53
9     # - QT_BASE=54
10     # - QT_BASE=55
11     # - QT_BASE=56
12     - QT_BASE=57
13     # - GCC_ARM=/opt/gcc-arm-none-eabi/bin
14     - AVR_FLAVORS="AVR9X 9X GRUVIN9X MEGA2560"
15     - PYTHONPATH=${PYTHONPATH}:/usr/lib/python3/dist-packages
16   matrix:
17     #
18     # ALL will build every individual board & DEFAULT, sequentially.
19     # DEFAULT is "make all" (including Companion & Simulator), with default settings
20     #
21     # - FLAVOR=ALL
22     - FLAVOR=DEFAULT
23     - FLAVOR=AVR9X
24     # - FLAVOR=9X
25     # - FLAVOR=GRUVIN9X
26     # - FLAVOR=MEGA2560
27     - FLAVOR=ARM9X
28     # - FLAVOR=AR9X
29     # - FLAVOR=SKY9X
30     # - FLAVOR=9XRPRO
31     - FLAVOR=X7
32     - FLAVOR=XLITE
33     - FLAVOR=X9
34     # - FLAVOR=X9D
35     # - FLAVOR=X9D+
36     # - FLAVOR=X9E
37     - FLAVOR=HORUS
38     # - FLAVOR=X10
39     # - FLAVOR=X12Sr10
40     # - FLAVOR=X12S
42 before_install:
43   - sudo add-apt-repository ppa:ubuntu-sdk-team/ppa --yes
44   - sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded --yes
45   - sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
46   - if [ "$QT_BASE" = "53" ]; then sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y; fi
47   - if [ "$QT_BASE" = "54" ]; then sudo add-apt-repository ppa:beineri/opt-qt542-trusty -y; fi
48   - if [ "$QT_BASE" = "55" ]; then sudo add-apt-repository ppa:beineri/opt-qt551-trusty -y; fi
49   - if [ "$QT_BASE" = "56" ]; then sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y; fi
50   - if [ "$QT_BASE" = "57" ]; then sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y; fi
51   - sudo apt-get update -qq
52   - pyenv uninstall -f 2.7.6 && pyenv install 3.5.4 && pyenv global 3.5.4
53   - pip install pillow
55 install:
56   - sudo apt-get --yes --force-yes install curl libmpfr4 libmpc3 libfox-1.6-dev libgtest-dev
57   - |
58     if [[ " ${AVR_FLAVORS} " =~ " ${FLAVOR} " || ${FLAVOR} == "ALL" ]]; then
59       wget --quiet https://launchpad.net/ubuntu/+source/gcc-avr/1:4.9.2+Atmel3.5.0-1/+build/8403710/+files/gcc-avr_4.9.2+Atmel3.5.0-1_amd64.deb
60       wget --quiet https://launchpad.net/ubuntu/+source/avr-libc/1:1.8.0+Atmel3.5.0-1/+build/8435473/+files/avr-libc_1.8.0+Atmel3.5.0-1_all.deb
61       wget --quiet https://launchpad.net/ubuntu/+source/binutils-avr/2.25+Atmel3.5.0-2/+build/8435474/+files/binutils-avr_2.25+Atmel3.5.0-2_amd64.deb
62       sudo dpkg --install gcc-avr_4.9.2+Atmel3.5.0-1_amd64.deb avr-libc_1.8.0+Atmel3.5.0-1_all.deb binutils-avr_2.25+Atmel3.5.0-2_amd64.deb
63     fi
64     if [[ ! " ${AVR_FLAVORS} " =~ " ${FLAVOR} " || ${FLAVOR} == "ALL" ]]; then
65       sudo apt-get --yes --force-yes install gcc-arm-none-eabi
66       # Trying to build with gcc-arm 4.7 isn't working because it can't find the compiler, despite adding to PATH (in commit-tests.sh) by defining GCC_ARM above
67       # - wget --quiet https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
68       # - tar xjf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
69       # - mv gcc-arm-none-eabi-4_7-2013q3 /opt/gcc-arm-none-eabi
70     fi
71   - sudo apt-get install --yes --force-yes -qq qt${QT_BASE}base qt${QT_BASE}multimedia qt${QT_BASE}svg qt${QT_BASE}tools; source /opt/qt${QT_BASE}/bin/qt${QT_BASE}-env.sh
73 script:
74   - ./tools/commit-tests.sh