forked from 3drobotics/ardupilot-solo-rebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (64 loc) · 2.78 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: cpp
sudo: false
cache:
directories:
- $HOME/opt
- $HOME/.ccache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- ccache
- g++-4.8
- gcc-4.8
- genromfs
- libc6-i386
- python-argparse
- python-empy
- python-serial
- zlib1g-dev
before_install:
- pushd $HOME
- pushd $HOME/opt
- if [ ! -d "$HOME/opt/gcc-arm-none-eabi-4_9-2015q3" ]; 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
- popd
- mkdir -p $HOME/bin && ln -sf /usr/bin/gcc-4.8 $HOME/bin/gcc && ln -sf /usr/bin/g++-4.8
$HOME/bin/g++ && 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"
&& if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline
>> ~/.profile; fi && . ~/.profile
- popd
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
script:
- pushd ArduCopter
- make px4-v2-solo -j8
- popd
before_deploy:
- mkdir $HOME/deploy_files
- cp ArduCopter/ArduCopter-v2.px4 $HOME/deploy_files
- cp modules/PX4Firmware/Build/px4fmu-v2_APM.build/firmware.elf $HOME/deploy_files/fmu.elf
- cp modules/PX4Firmware/Build/px4io-v2_default.build/firmware.elf $HOME/deploy_files/io.elf
deploy:
provider: releases
api_key:
secure: iOR28S7iqYzD35k7Gs1o445JPRxfzrtxiKqzFDR+l1WLF/vbF2lfdUugLnJ3N0e7ftrABRZW12LtfvxxYIzgshL1AUnNVq7LRCyxIqVu7YqJw1Qs6HX6K2OVlS/Ke83/aMnHpsC3MLryZ/6gpc0zO56i9tx1t+ZvPZQRjRhSYwE8wDk0UEJ0fZ2tGDQ7UNjQFxriYpOH/5P+wazlmCisgE45CIaCH03z/0yr7c8kpElsksksVb+UVKi5tQ86sGwL+09LlslDGRhTb008FaQ9jbtERcYB9/f29catWOmQbKt8Z5I10IaJ0onFnbtxv07JfnjcB3Hv4nt7uYV61Srze4rBBn10UJ3GpWCWV1nRjCLXmr2BW+8kiTkRPM8CXEZm7avGFyjn4zi/3MKWWAb0hJ5AWRCQ5KJWD9c9tGTyLy253xqoqdEM16GXfsuk2mt8VurFhqPT039m4m8rAj3j3WP3EedWkHqk9pT73pVVKB1Ua5ry1EJr/po3LsBUmhOIIGZU38irAiC4Xwa9Samo+vV4TaxRn4FX8/dJWhSJVfo0GlRnSUN0OZW6upl3nJTPttLX9kVMOetQyc7B+d1QGxALjKTffznm2DM3sOXde5sacIa4logyYK/5JkhQkuRVxDjuVE4vOZNCfIOaO1LyYLVpHPet/yE7pfl3jkoBfhE=
file: 'ArduCopter/ArduCopter-v2.px4'
skip_cleanup: true
on:
repo: 3drobotics/ardupilot-solo-rebase
tags: true