Files
PX4-Autopilot/.travis.yml
T
Peter Dürr 305a95aef9 Integrate Python-based tests and benchmark into Travis
* Unfortunately, due to the SWIG dependency, we need sudo to install on
  Travis (conflicts when adding with debian-sid source prevent using addons)
  which means we cannot use the container-based infrastructure anymore.
* Building the Python bindings requires g++5 (at least with -Werr set).
* When building the Python bindings on Travis, the numpy includes are not found
  by cmake, so they have to be added separately by running a Python process with
  `numpy.get_include()`
* The build script now (somewhat clumsily) depends on the RUN_PYTEST environment
  variable. If it is set to anything other than "", it will make the tests and
  run tests and benchmarks
2017-08-14 12:02:03 +02:00

34 lines
769 B
YAML

sudo: required
language: cpp
python:
- '3.5'
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
compiler: gcc
env:
- MATRIX_EVAL=""
- os: linux
dist: trusty
compiler: clang
env:
- CC=clang CXX=clang++
- MATRIX_EVAL=""
- os: linux
dist: trusty
compiler: gcc
env:
- RUN_PYTEST=1
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get -qq update
- sudo apt-get install -y clang cmake g++ gcc libeigen3-dev swig3.0 python-dev gcc-5 g++-5
- eval "${MATRIX_EVAL}"
- if [ -n "${RUN_PYTEST}" ]; then pip3 install -r ./EKF/tests/pytest/requirements.txt; fi
script: ./build.sh