-
Notifications
You must be signed in to change notification settings - Fork 60
/
.travis.yml
42 lines (42 loc) · 1.57 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
language: c++
cache:
apt: true
pip: true
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/apt-cacher-ng
sudo: required
dist: bionic
services:
- docker
env:
global:
- USE_TRAVIS=true
- USE_DOCKER=true
- ROS_PARALLEL_TEST_JOBS="-j8"
- EXTRA_DEB="python-lxml" # add python-lxml due to https://github.com/ros/rosdistro/pull/31570
- GIT_SSL_NO_VERIFY=1 # http://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c
matrix:
- CHECK_PYTHON2_COMPILE=true
- CHECK_PYTHON3_COMPILE=true
- ROS_DISTRO=indigo USE_DEB=false
- ROS_DISTRO=kinetic USE_DEB=true
- ROS_DISTRO=kinetic USE_DEB=true DOCKER_IMAGE=i386/ubuntu:16.04 ROSDEP_ADDITIONAL_OPTIONS="-n -q -r --ignore-src --skip-keys=python-google-cloud-texttospeech-pip --skip-keys=python-dialogflow-pip" # Skip installation of grpcio by pip because it causes error
- ROS_DISTRO=melodic USE_DEB=true
- ROS_DISTRO=noetic USE_DEB=true
- ROS_DISTRO=noetic USE_DEB=false
matrix:
fast_finish: true
allow_failures:
- env: ROS_DISTRO=hydro USE_DEB=true USE_DOCKER=true
- env: ROS_DISTRO=noetic USE_DEB=true
script:
- if [ "${CHECK_PYTHON2_COMPILE}" == "true" ]; then python2 -m compileall .; exit $?; fi
- if [ "${CHECK_PYTHON3_COMPILE}" == "true" ]; then python3 -m compileall .; exit $?; fi
- if [ "$ROS_DISTRO" == "indigo" ]; then export BEFORE_SCRIPT="sudo pip install virtualenv==15.1.0; $BEFORE_SCRIPT"; fi
- source .travis/travis.sh
notifications:
email:
on_success: always
on_failure: always