travis: enable wide range of builds in Travis-CI
This commit is contained in:
parent
06a72839ed
commit
494789054e
@ -4,7 +4,4 @@ before_install:
|
||||
- cd .. && ./ardupilot/Tools/scripts/install-prereqs-ubuntu.sh -y && . ~/.profile
|
||||
|
||||
script:
|
||||
- cd ./ardupilot/ArduCopter && make configure && make && make px4-v2
|
||||
- cd ../ArduPlane && make configure && make && make px4-v2
|
||||
- cd ../APMrover2 && make configure && make && make px4-v2
|
||||
- cd ../ArduCopter && make configure && make && make vrubrain-v51
|
||||
- cd ./ardupilot && Tools/scripts/build_all_travis.sh
|
||||
|
36
Tools/scripts/build_all_travis.sh
Executable file
36
Tools/scripts/build_all_travis.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# useful script to test all the different build types that we support.
|
||||
# This helps when doing large merges
|
||||
# Andrew Tridgell, November 2011
|
||||
|
||||
. config.mk
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
echo "Testing ArduPlane build"
|
||||
pushd ArduPlane
|
||||
for b in all apm2 sitl linux; do
|
||||
pwd
|
||||
make clean
|
||||
make $b -j4
|
||||
done
|
||||
popd
|
||||
|
||||
for d in ArduCopter APMrover2 ArduPlane AntennaTracker; do
|
||||
pushd $d
|
||||
make clean
|
||||
make sitl -j4
|
||||
make clean
|
||||
make linux -j4
|
||||
make clean
|
||||
make px4-v2
|
||||
popd
|
||||
done
|
||||
|
||||
pushd Tools/Replay
|
||||
make clean
|
||||
make linux -j4
|
||||
popd
|
||||
|
||||
exit 0
|
@ -6,6 +6,7 @@ OPT="/opt"
|
||||
|
||||
BASE_PKGS="gawk make git arduino-core curl"
|
||||
SITL_PKGS="g++ python-pip python-matplotlib python-serial python-wxgtk2.8 python-scipy python-opencv python-numpy python-pyparsing ccache"
|
||||
AVR_PKGS="gcc-avr binutils-avr avr-libc"
|
||||
PYTHON_PKGS="pymavlink MAVProxy droneapi"
|
||||
PX4_PKGS="python-serial python-argparse openocd flex bison libncurses5-dev \
|
||||
autoconf texinfo build-essential libftdi-dev libtool zlib1g-dev \
|
||||
@ -57,7 +58,7 @@ sudo usermod -a -G dialout $USER
|
||||
|
||||
$APT_GET remove modemmanager
|
||||
$APT_GET update
|
||||
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $UBUNTU64_PKGS
|
||||
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $UBUNTU64_PKGS $AVR_PKGS
|
||||
sudo pip -q install $PYTHON_PKGS
|
||||
|
||||
|
||||
@ -69,6 +70,10 @@ if [ ! -d PX4NuttX ]; then
|
||||
git clone https://github.com/diydrones/PX4NuttX.git
|
||||
fi
|
||||
|
||||
if [ ! -d uavcan ]; then
|
||||
git clone https://github.com/diydrones/uavcan.git
|
||||
fi
|
||||
|
||||
if [ ! -d VRNuttX ]; then
|
||||
git clone https://github.com/virtualrobotix/vrbrain_nuttx.git VRNuttX
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user