2014-07-12 13:36:11 -03:00
|
|
|
language: cpp
|
2015-11-24 18:25:53 -04:00
|
|
|
sudo: false
|
|
|
|
|
2015-11-24 21:40:14 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/opt
|
2015-11-24 22:26:41 -04:00
|
|
|
- $HOME/.ccache
|
2015-11-24 21:40:14 -04:00
|
|
|
|
2015-11-24 18:25:53 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- build-essential
|
2015-11-24 22:26:41 -04:00
|
|
|
- ccache
|
2015-11-24 18:25:53 -04:00
|
|
|
- g++-4.8
|
|
|
|
- gcc-4.8
|
|
|
|
- genromfs
|
|
|
|
- libc6-i386
|
|
|
|
- python-argparse
|
|
|
|
- python-empy
|
|
|
|
- python-serial
|
|
|
|
- zlib1g-dev
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "diydrones/ardupilot"
|
|
|
|
description: "Build submitted via Travis CI"
|
|
|
|
notification_email: andrew-scan@tridgell.net
|
|
|
|
build_command_prepend: "make clean"
|
|
|
|
build_command: "make"
|
|
|
|
branch_pattern: coverity_scan
|
2014-07-12 13:36:11 -03:00
|
|
|
|
|
|
|
before_install:
|
2015-11-24 21:40:14 -04:00
|
|
|
- pushd $HOME
|
|
|
|
- pushd $HOME/opt
|
|
|
|
# PX4 toolchain
|
|
|
|
- compiler="gcc-arm-none-eabi-4_9-2015q3"
|
|
|
|
- if [ ! -d "$HOME/opt/$compiler" ]; then
|
|
|
|
wget http://firmware.diydrones.com/Tools/PX4-tools/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
|
|
|
|
&& tar -xf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
|
|
|
|
;
|
|
|
|
fi
|
|
|
|
# RPi toolchain
|
|
|
|
- compiler="tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64"
|
|
|
|
- if [ ! -d "$HOME/opt/$compiler" ]; then
|
|
|
|
wget http://firmware.diydrones.com/Tools/Travis/NavIO/master.tar.gz
|
|
|
|
&& tar -xf master.tar.gz
|
|
|
|
;
|
|
|
|
fi
|
|
|
|
- popd
|
|
|
|
- mkdir -p $HOME/bin
|
2015-11-24 18:25:53 -04:00
|
|
|
&& ln -sf /usr/bin/gcc-4.8 $HOME/bin/gcc
|
|
|
|
&& ln -sf /usr/bin/g++-4.8 $HOME/bin/g++
|
2015-11-24 21:40:14 -04:00
|
|
|
&& exportline="export PATH=$HOME/bin:$HOME/opt/gcc-arm-none-eabi-4_9-2015q3/bin:$HOME/opt/tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:\$PATH"
|
2015-11-24 18:25:53 -04:00
|
|
|
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
|
|
|
&& . ~/.profile
|
2015-11-24 21:40:14 -04:00
|
|
|
- popd
|
2014-07-12 13:36:11 -03:00
|
|
|
|
2015-11-24 22:26:41 -04:00
|
|
|
before_script:
|
|
|
|
- mkdir -p $HOME/ccache-bin
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/g++-4.8
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/gcc-4.8
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/gcc-4.8-size
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/gcc-4.8-objcopy
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-g++
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-gcc
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-size
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-none-eabi-objcopy
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-g++
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-gcc
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-size
|
|
|
|
- ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-objcopy
|
|
|
|
|
2015-11-24 18:25:53 -04:00
|
|
|
script:
|
2015-12-30 14:20:34 -04:00
|
|
|
- python Tools/autotest/param_metadata/param_parse.py
|
2015-01-07 18:09:05 -04:00
|
|
|
- Tools/scripts/build_all_travis.sh
|
2014-12-31 18:43:16 -04:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/e5e0b55e353e53945b4b
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: false # default: false
|
2015-06-02 17:44:17 -03:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2015-06-11 19:56:15 -03:00
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "FjIwqZQV2FhNPWYITX5LZXTE38yYqBaQdbm3QmbEg/30wnPTm1ZOLIU7o/aSvX615ImR8kHoryvFPDQDWc6wWfqTEs3Ytq2kIvcIJS2Y5l/0PFfpWJoH5gRd6hDThnoi+1oVMLvj1+bhn4yFlCCQ2vT/jxoGfiQqqgvHtv4fLzI="
|
|
|
|
matrix:
|
2015-06-15 22:03:23 -03:00
|
|
|
- TRAVIS_BUILD_TARGET="px4-v2"
|
2015-12-14 14:15:26 -04:00
|
|
|
- TRAVIS_BUILD_TARGET="sitl linux navio raspilot minlure bebop"
|