2014-12-31 18:32:25 -04:00
|
|
|
#!/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
|
|
|
|
|
2015-04-05 16:24:54 -03:00
|
|
|
. ~/.profile
|
|
|
|
|
2015-06-11 19:56:15 -03:00
|
|
|
travis_build_type_or_empty() {
|
|
|
|
if [ -z "$TRAVIS_BUILD_TYPE" ] || [ "$TRAVIS_BUILD_TYPE" = "$1" ]; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
2014-12-31 18:32:25 -04:00
|
|
|
echo "Testing ArduPlane build"
|
|
|
|
pushd ArduPlane
|
2015-06-11 19:51:25 -03:00
|
|
|
for b in apm2; do
|
2014-12-31 18:32:25 -04:00
|
|
|
pwd
|
|
|
|
make clean
|
|
|
|
make $b -j4
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
for d in ArduCopter APMrover2 ArduPlane AntennaTracker; do
|
2015-06-11 19:56:15 -03:00
|
|
|
if ! travis_build_type_or_empty "$d"; then
|
|
|
|
continue
|
|
|
|
fi
|
2014-12-31 18:32:25 -04:00
|
|
|
pushd $d
|
|
|
|
make clean
|
2015-06-09 22:34:40 -03:00
|
|
|
make navio -j2
|
2015-04-28 08:40:17 -03:00
|
|
|
make clean
|
2014-12-31 18:32:25 -04:00
|
|
|
make sitl -j4
|
|
|
|
make clean
|
2015-06-09 22:34:40 -03:00
|
|
|
make linux -j2
|
2014-12-31 18:32:25 -04:00
|
|
|
make clean
|
2015-01-06 00:15:38 -04:00
|
|
|
make px4-cleandep
|
2014-12-31 18:32:25 -04:00
|
|
|
make px4-v2
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
2015-06-11 19:56:15 -03:00
|
|
|
if travis_build_type_or_empty "Replay"; then
|
|
|
|
pushd Tools/Replay
|
|
|
|
make clean
|
|
|
|
make linux -j4
|
|
|
|
popd
|
|
|
|
fi
|
2014-12-31 18:32:25 -04:00
|
|
|
|
|
|
|
exit 0
|