ci: added sitltest target

this adds some basic SITL testing to our CI
This commit is contained in:
Andrew Tridgell 2016-02-22 07:50:13 +11:00
parent b84b480086
commit 119cf6bb13
3 changed files with 17 additions and 1 deletions

View File

@ -38,3 +38,4 @@ env:
matrix: matrix:
- CI_BUILD_TARGET="px4-v2 sitl linux" - CI_BUILD_TARGET="px4-v2 sitl linux"
- CI_BUILD_TARGET="navio raspilot minlure bebop" - CI_BUILD_TARGET="navio raspilot minlure bebop"
- CI_BUILD_TARGET="sitltest"

View File

@ -40,6 +40,20 @@ build_concurrency=(["navio"]="-j2"
build_extra_clean=(["px4-v2"]="make px4-cleandep") build_extra_clean=(["px4-v2"]="make px4-cleandep")
# special case for SITL testing in CI
if [ "$CI_BUILD_TARGET" = "sitltest" ]; then
echo "Installing pymavlink"
git submodule init
git submodule update
(cd modules/mavlink/pymavlink && python setup.py build install --user)
unset BUILDROOT
echo "Running SITL QuadCopter test"
Tools/autotest/autotest.py -j2 build.ArduCopter fly.ArduCopter
echo "Running SITL QuadPlane test"
Tools/autotest/autotest.py -j2 build.ArduPlane fly.QuadPlane
exit 0
fi
waf=modules/waf/waf-light waf=modules/waf/waf-light
# get list of boards supported by the waf build # get list of boards supported by the waf build

View File

@ -4,7 +4,7 @@
set -ex set -ex
PKGS="build-essential gawk ccache genromfs libc6-i386 \ PKGS="build-essential gawk ccache genromfs libc6-i386 \
python-argparse python-empy python-serial zlib1g-dev gcc-4.9 g++-4.9" python-argparse python-empy python-serial python-pexpect python-dev python-pip zlib1g-dev gcc-4.9 g++-4.9"
ARM_ROOT="gcc-arm-none-eabi-4_9-2015q3" ARM_ROOT="gcc-arm-none-eabi-4_9-2015q3"
ARM_TARBALL="$ARM_ROOT-20150921-linux.tar.bz2" ARM_TARBALL="$ARM_ROOT-20150921-linux.tar.bz2"
@ -15,6 +15,7 @@ RPI_TARBALL="$RPI_ROOT.tar.gz"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get -qq -y update sudo apt-get -qq -y update
sudo apt-get -qq -y install $PKGS sudo apt-get -qq -y install $PKGS
sudo pip install mavproxy
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 \ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 \
--slave /usr/bin/g++ g++ /usr/bin/g++-4.9 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9