|
1 |
| -sudo: required |
2 |
| -dist: trusty |
3 |
| -language: generic |
4 |
| -compiler: |
5 |
| - - gcc |
6 |
| -before_install: |
7 |
| - # Define some config vars |
8 |
| - - export ROS_DISTRO=indigo |
9 |
| - - export CI_SOURCE_PATH=$(pwd) |
10 |
| - # Bootstrap a minimal ROS installation |
11 |
| - - git clone https://github.com/orocos/ros_ci_tools /tmp/ros_ci_tools && export PATH=/tmp/ros_ci_tools:$PATH |
12 |
| - - ros_ci_bootstrap |
13 |
| - - source /opt/ros/$ROS_DISTRO/setup.bash |
14 |
| - # Create non-isolated workspace |
15 |
| - - mkdir -p ~/ws/src |
16 |
| - - pushd ~/ws/src |
17 |
| - - ln -s $CI_SOURCE_PATH |
18 |
| - - popd |
19 |
| - - rosdep install -r --from-paths ~/ws/src --ignore-src --rosdistro $ROS_DISTRO -y > /dev/null |
20 |
| - # Source the ROS setup script again due to eventually updated env-hooks |
21 |
| - - source /opt/ros/$ROS_DISTRO/setup.bash |
| 1 | +# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git). |
| 2 | +# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst) |
22 | 3 |
|
23 |
| -install: |
24 |
| - # build the normal catkin workspace |
25 |
| - - pushd ~/ws |
26 |
| - - catkin_make -j2 |
| 4 | +language: generic # optional, just removes the language badge |
| 5 | + |
| 6 | +services: |
| 7 | + - docker |
| 8 | + |
| 9 | +# include the following block if the C/C++ build artifacts should get cached by Travis, |
| 10 | +# CCACHE_DIR needs to get set as well to actually fill the cache |
| 11 | +cache: |
| 12 | + directories: |
| 13 | + - $HOME/.ccache |
| 14 | + |
| 15 | +git: |
| 16 | + quiet: true # optional, silences the cloning of the target repository |
27 | 17 |
|
| 18 | +# limit automatic builds to certain branches (and pull requests) |
| 19 | +branches: |
| 20 | + only: |
| 21 | + - master |
| 22 | + - /^toolchain-[\d\.]+[\d]$/ |
| 23 | + |
| 24 | +# configure the build environment(s) |
| 25 | +# https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#variables-you-can-configure |
| 26 | +env: |
| 27 | + global: # global settings for all jobs |
| 28 | + - ROS_REPO=ros |
| 29 | + - CCACHE_DIR=$HOME/.ccache # enables C/C++ caching in industrial_ci |
| 30 | + matrix: # each line is a job |
| 31 | + - ROS_DISTRO="kinetic" |
| 32 | + #- ROS_DISTRO="melodic" |
| 33 | + |
| 34 | +# allow failures, e.g. for unsupported distros |
| 35 | +#matrix: |
| 36 | +# allow_failures: |
| 37 | +# - env: ROS_DISTRO="lunar" ROS_REPO=ros-shadow-fixed |
| 38 | + |
| 39 | +# clone and run industrial_ci |
| 40 | +install: |
| 41 | + - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci |
28 | 42 | script:
|
29 |
| - # Run tests |
30 |
| - - source devel/setup.bash |
31 |
| - - catkin_make run_tests |
32 |
| - - catkin_test_results |
33 |
| - #- catkin_make install |
| 43 | + - .industrial_ci/travis.sh |
0 commit comments