|
| 1 | +# This config file for Travis CI utilizes ros-industrial/industrial_ci package. |
| 2 | +# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst |
| 3 | +language: generic |
| 4 | +dist: bionic |
| 5 | +services: |
| 6 | + - docker |
| 7 | + |
| 8 | +# include the following block if the C/C++ build artifacts should get cached by Travis, |
| 9 | +# CCACHE_DIR needs to get set as well to actually fill the cache |
| 10 | +cache: |
| 11 | + directories: |
| 12 | + - $HOME/.ccache |
| 13 | + |
| 14 | +git: |
| 15 | + quiet: true # optional, silences the cloning of the target repository |
| 16 | + |
| 17 | +# configure the build environment(s) |
| 18 | +# https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#variables-you-can-configure |
| 19 | +env: |
| 20 | + global: # global settings for all jobs |
| 21 | + - CCACHE_DIR=$HOME/.ccache # enables C/C++ caching in industrial_ci |
| 22 | + - ROS_REPO=ros-testing # ros |
| 23 | + matrix: |
| 24 | + - ROS_DISTRO="kinetic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Debug' |
| 25 | + - ROS_DISTRO="kinetic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Release' |
| 26 | + - ROS_DISTRO="kinetic" PRERELEASE=true |
| 27 | + - ROS_DISTRO="melodic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Debug' |
| 28 | + - ROS_DISTRO="melodic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Release' |
| 29 | + - ROS_DISTRO="melodic" PRERELEASE=true |
| 30 | + - ROS_DISTRO="noetic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Debug' |
| 31 | + - ROS_DISTRO="noetic" CMAKE_ARGS='-DCMAKE_BUILD_TYPE=Release' |
| 32 | + - ROS_DISTRO="noetic" PRERELEASE=true |
| 33 | +matrix: |
| 34 | + allow_failures: |
| 35 | + - env: ROS_DISTRO="kinetic" PRERELEASE=true |
| 36 | + - env: ROS_DISTRO="melodic" PRERELEASE=true |
| 37 | + - env: ROS_DISTRO="noetic" PRERELEASE=true |
| 38 | +install: |
| 39 | + - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b master |
| 40 | +script: |
| 41 | + - source .ci_config/travis.sh |
0 commit comments