2014-12-20 13:54:35 -04:00
|
|
|
|
|
|
|
# Build and autotest script for PX4 Firmware
|
|
|
|
# http://travis-ci.org
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
before_script:
|
2014-12-20 14:55:24 -04:00
|
|
|
#- sudo add-apt-repository 'ppa:terry.guo/gcc-arm-embedded' -y
|
2014-12-20 14:02:37 -04:00
|
|
|
- sudo apt-get update -q
|
2014-12-20 14:55:24 -04:00
|
|
|
# Note: we do not want a random, auto-updated GCC version - sudo apt-get install gcc-arm-none-eabi
|
2014-12-20 15:01:09 -04:00
|
|
|
- sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
|
2014-12-20 14:58:45 -04:00
|
|
|
- sudo apt-get install python-serial python-argparse grep
|
2014-12-20 14:45:42 -04:00
|
|
|
- sudo apt-get install flex bison libncurses5-dev autoconf texinfo build-essential libtool zlib1g-dev genromfs git wget
|
2014-12-20 14:55:24 -04:00
|
|
|
- pushd .
|
|
|
|
- cd ~
|
|
|
|
- wget https://launchpadlibrarian.net/174121628/gcc-arm-none-eabi-4_7-2014q2-20140408-linux.tar.bz2
|
|
|
|
- tar -jxf gcc-arm-none-eabi-4_7-2014q2-20140408-linux.tar.bz2
|
|
|
|
- exportline="export PATH=$HOME/gcc-arm-none-eabi-4_7-2014q2/bin:\$PATH"
|
|
|
|
- if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
|
|
|
|
- . ~/.profile
|
|
|
|
- popd
|
2014-12-20 13:54:35 -04:00
|
|
|
|
2014-12-20 14:31:13 -04:00
|
|
|
# Output GCC version
|
2014-12-20 14:33:38 -04:00
|
|
|
- arm-none-eabi-gcc --version
|
2014-12-20 14:31:13 -04:00
|
|
|
|
2014-12-20 13:54:35 -04:00
|
|
|
# Clone only as much as we need
|
|
|
|
git:
|
2014-12-20 14:02:37 -04:00
|
|
|
depth: 500
|
2014-12-20 13:54:35 -04:00
|
|
|
|
|
|
|
script:
|
2014-12-20 14:02:37 -04:00
|
|
|
- make testbuild
|
|
|
|
- make tests
|