|
1 | | -dist: xenial |
2 | | -sudo: required |
3 | | -language: |
4 | | -- cpp |
5 | | -cache: |
6 | | -- apt |
| 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) |
| 3 | + |
| 4 | +language: generic # optional, just removes the language badge |
| 5 | + |
| 6 | +services: |
| 7 | + - docker |
| 8 | + |
7 | 9 | notifications: |
8 | 10 | slack: |
9 | 11 | secure: I7/Kqj/ZiaoW9bZzlDFYU2aFv1J3R0z5+6kDf9TI8AHsN9K/GYs05kG8gfpORmaBobF22AwpB/I5o8ga5nJGAP25SgX8bcP3jJaKUyfMxXj3ThkfINTMKeLhZqzh5c3ppBwHy62vdSDry4fyuIhtaWOa+8GqmI3D37/0yzFCPQLLYnSXoF5EKSFkKPytfVdwbOKE/uSgPbAy0xsPUKLEGdIhvFjyDzfj5KIHcYWFu9eus0GpuCJVJE/nGTz7PrQ9Rhuh3eVeJNn5CEXo+0Lgn8lghUY0xRH/0xn+mhjYZnxTNO18YRoiF8lUB+/phQx2E3GiDrtPd7BjtluKGIkgFMZM/dyzHN7lSeCJZ0nDhOuALNwdbhS8Hw18q5a6SanT4Kegno8ebDNwsEyHuiHy6D3XNE2PHIZ5SbSgX9MOaLBtarcHccAR19T+96mWJANS6rIKnhe0zW9+Jxl99mTCgcNjTmcm2YG5Axm8xOBmoK920I4ke1wfb9QLeMIOnQ/JM6DxkMbQGtoN49ztrg4cv+JwUOUnEn/yiLsz+p8EdaFiRLfAbww9VJ+1geDdGifv+TRq72RpTzGnNveNnRRysxBjfei3EwwoZqUFhZyVWQWqHuwSa8xFpxS3FMmDzP16oMAB/TuMV03MBTqNK/JDSMXq54Bs1pmtPJ4kvfGiKKo= |
10 | | -addons: |
11 | | - apt: |
12 | | - packages: |
13 | | - - doxygen |
14 | | -matrix: |
15 | | - include: |
16 | | - - name: Xenial kinetic |
17 | | - dist: xenial |
18 | | - env: ROS_DISTRO=kinetic |
19 | | -env: |
20 | | - global: |
21 | | - ROS_DISTRO: kinetic |
22 | | - ROS_CI_DESKTOP: "`lsb_release -cs`" |
23 | | - CI_SOURCE_PATH: "$(pwd)" |
24 | | - ROSINSTALL_FILE: "$CI_SOURCE_PATH/dependencies.rosinstall" |
25 | | - CATKIN_OPTIONS: "$CI_SOURCE_PATH/catkin.options" |
26 | | - ROS_PARALLEL_JOBS: "-j8 -l6" |
27 | | - PYTHONPATH: "$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages" |
28 | | -before_install: |
29 | | -- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" |
30 | | - > /etc/apt/sources.list.d/ros-latest.list" |
31 | | -- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key $ROS_KEY |
32 | | -- sudo apt-get update -qq |
33 | | -- sudo apt-get install dpkg |
34 | | -- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-ros-base |
35 | | -- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" |
36 | | - > /etc/apt/sources.list.d/ros-latest.list' |
37 | | -- wget http://packages.ros.org/ros.key -O - | sudo apt-key add - |
38 | | -- source /opt/ros/$ROS_DISTRO/setup.bash |
39 | | -- sudo rosdep init |
40 | | -- rosdep update |
41 | | -- sudo apt-get install ros-kinetic-rosbash |
42 | | -- sudo apt-get install ros-kinetic-roslaunch |
43 | | -- pip install --user catkin_lint |
44 | | -- pip install --user catkin_tools_document |
45 | | -- sudo apt-get install python-catkin-tools |
46 | | -install: |
47 | | -- mkdir -p ~/catkin_ws/src |
48 | | -- cd ~/catkin_ws |
49 | | -- catkin init |
50 | | -- catkin build |
51 | | -- source devel/setup.bash |
52 | | -- cd ~/catkin_ws/src |
53 | | -- ln -s $CI_SOURCE_PATH . |
54 | | -before_script: |
55 | | -- cd ~/catkin_ws/src |
56 | | -- wstool init |
57 | | -- if [[ -f $ROSINSTALL_FILE ]] ; then wstool merge $ROSINSTALL_FILE ; fi |
58 | | -- wstool up |
59 | | -- cd ~/catkin_ws |
60 | | -- rosdep update |
61 | | -- rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO |
62 | | -- cd src |
63 | | -- cd ~/catkin_ws |
64 | | -script: |
65 | | -- source /opt/ros/$ROS_DISTRO/setup.bash |
66 | | -- cd ~/catkin_ws |
67 | | -- src/hardware-interface/build.sh |
68 | | -- src/hardware-interface/doc.sh |
| 12 | + email: false |
69 | 13 |
|
| 14 | +# include the following block if the C/C++ build artifacts should get cached by Travis, |
| 15 | +# CCACHE_DIR needs to get set as well to actually fill the cache |
| 16 | +cache: |
| 17 | + directories: |
| 18 | + - $HOME/.ccache |
70 | 19 |
|
71 | | -# Code coverage |
72 | | -after_success: |
73 | | -- catkin build march_hardware -v --no-deps --catkin-make-args march_hardware_coverage |
74 | | -- catkin build march_hardware_builder -v --no-deps --catkin-make-args march_hardware_builder_coverage |
75 | | -- catkin build march_hardware_interface -v --no-deps --catkin-make-args march_hardware_interface_coverage |
76 | | -- catkin build march_temperature_sensor_controller -v --no-deps --catkin-make-args march_temperature_sensor_controller_coverage |
77 | | -- cd ~/catkin_ws/src/hardware-interface |
78 | | -- bash <(curl -s https://codecov.io/bash) -f ~/catkin_ws/build/march_hardware/march_hardware_coverage.info |
79 | | -- bash <(curl -s https://codecov.io/bash) -f ~/catkin_ws/build/march_hardware_builder/march_hardware_builder_coverage.info |
80 | | -- bash <(curl -s https://codecov.io/bash) -f ~/catkin_ws/build/march_hardware_interface/march_hardware_interface_coverage.info |
81 | | -- bash <(curl -s https://codecov.io/bash) -f ~/catkin_ws/build/march_temperature_sensor_controller/march_temperature_sensor_controller_coverage.info |
| 20 | +git: |
| 21 | + quiet: true # optional, silences the cloning of the target repository |
82 | 22 |
|
| 23 | +# configure the build environment(s) |
| 24 | +# https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#variables-you-can-configure |
| 25 | +env: |
| 26 | + global: |
| 27 | + - ROS_REPO=ros |
| 28 | + - CCACHE_DIR=$HOME/.ccache # enables C/C++ caching in industrial_ci |
| 29 | + - BUILDER=colcon |
| 30 | + - CATKIN_LINT=pedantic |
| 31 | + - UPSTREAM_WORKSPACE='dependencies.rosinstall -march-iv/march_gait_scheduler -march-iv/march_gait_selection -march-iv/march_launch -march-iv/march_rqt_gait_selection -march-iv/march_rqt_input_device -march-iv/march_rqt_training_log -march-iv/march_safety -march-iv/march_sound_scheduler' |
| 32 | + - AFTER_SCRIPT='builder_run_build "$target_ws/install" "$target_ws" --cmake-target-skip-unavailable --cmake-target roslint' |
| 33 | + matrix: |
| 34 | + - ROS_DISTRO=kinetic |
| 35 | + - ROS_DISTRO=melodic |
83 | 36 |
|
84 | | -deploy: |
85 | | - provider: pages |
86 | | - skip_cleanup: true |
87 | | - local_dir: "/home/travis/catkin_ws/docs/html" |
88 | | - github_token: "$GH_REPO_TOKEN" |
89 | | - on: |
90 | | - branch: develop |
| 37 | +# clone and run industrial_ci |
| 38 | +install: |
| 39 | + - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master |
| 40 | +script: |
| 41 | + - .industrial_ci/travis.sh |
0 commit comments