px4-firmware/.travis.yml

52 lines
1.8 KiB
YAML
Raw Normal View History

# Build and autotest script for PX4 Firmware
# http://travis-ci.org
language: cpp
before_script:
2014-12-20 14:02:37 -04:00
- sudo apt-get update -q
- sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
- sudo apt-get install python-serial python-argparse grep zip
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 14:33:38 -04:00
- arm-none-eabi-gcc --version
2014-12-20 19:50:06 -04:00
git:
2014-12-20 14:02:37 -04:00
depth: 500
script:
2014-12-20 14:02:37 -04:00
- make testbuild
- make tests
2014-12-20 16:49:52 -04:00
2014-12-20 19:50:06 -04:00
deploy:
2014-12-20 16:49:52 -04:00
provider: releases
api_key:
secure: cdHWLRBxA5UlYpOS0Sp891QK7PFmMgQ5ZWs1aPt+sw0rIrowyWMHCwXNBEdUqaExHYNYgXCUDI0EzNgfB7ZcR63Qv1MQeoyamV4jsxlyAqDqmxNtWO82S6RhHGeMLk26VgFKzynVcEk1IYlQP2nqzMQLdu+jTrngERuAIrCdRuc=
file:
paths:
- "Firmware.zip"
2014-12-20 19:50:06 -04:00
skip_cleanup: true
2014-12-20 16:49:52 -04:00
on:
2014-12-20 19:50:06 -04:00
tags: true
all_branches: true
2014-12-20 16:49:52 -04:00
repo: PX4/Firmware
addons:
artifacts:
paths:
- "Firmware.zip"
key:
secure: j4y9x9KXUiarGrnpFBLPIkEKIH8X6oSRUO61TwxTOamsE0eEKnIaCz1Xq83q7DoqzomHBD3qXAFPV9dhLr1zdKEPJDIyV45GVD4ClIQIzh/P3Uc7kDNxKzdmxY12SH6D0orMpC4tCf1sNK7ETepltWfcnjaDk1Rjs9+TVY7LuzM=
secret:
secure: CJC7VPGtEhJu8Pix85iPF8xUvMPZvTgnHyd9MrSlPKCFFMrlgz9eMT0WWW/TPQ+s4LPwJIfEQx2Q0BRT5tOXuvsTLuOG68mplVddhTWbHb0m0qTQErXFHEppvW4ayuSdeLJ4TjTWphBVainL0mcLLRwQfuAJJDDs/sGan3WrG+Y=
bucket: travisbinaries
region: eu-central-1
# endpoint: XXX might be required as well