Compare commits

...

2 commits

Author SHA1 Message Date
c242baf72f build: also build the unit tests with GCC.
This has two benefits:
 * It tests the code using the same compiler as used in the flight system
 * It catches GCC specific bugs in the unit tests

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-22 05:59:40 +02:00
72424cca4b build: use the gcc-arm-embedded provided PPA instead of the tarball.
This makes the Travis configuration a little bit simpler and, as a
bonus, automatically uses the latest release of GCC to build
Cleanflight.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-22 05:51:51 +02:00

View file

@ -21,15 +21,17 @@ env:
language: cpp
compiler: clang
before_install:
- sudo apt-get update
- wget "https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update/+download/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2"
# Also build the unit tests with GCC.
matrix:
include:
- compiler: gcc
env: RUNTESTS=True
before_install:
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
- sudo apt-get -qq update
- sudo apt-get -qq install gcc-arm-none-eabi
install:
- sudo apt-get install build-essential git libc6-i386
- tar -xf gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2
- export PATH=$PATH:$PWD/gcc-arm-none-eabi-4_8-2014q3/bin
before_script: arm-none-eabi-gcc --version
script: ./.travis.sh