forked from fzi-forschungszentrum-informatik/Lanelet2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (46 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
# Use docker with sudo privileges.
sudo: required
services: docker
# Start the lanelet2 docker container and test
_ros_build: &ros_build
script:
- docker run -dit --name lanelet2 -v `pwd`:/home/developer/workspace/src/lanelet2 --rm lanelet2_deps bash
- docker exec -ti lanelet2 /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && catkin build --no-status"
- docker exec -ti lanelet2 catkin build --catkin-make-args run_tests -- --no-status
- docker exec -ti lanelet2 /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && catkin_test_results --verbose"
- docker stop lanelet2
_ros2_build: &ros2_build
script:
- docker run -dit --name lanelet2 -v `pwd`:/home/developer/workspace/src/lanelet2 --rm lanelet2_deps bash
- docker exec -ti lanelet2 /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && colcon build --symlink-install"
- docker exec -ti lanelet2 colcon test
- docker stop lanelet2
# Build this with the distributions we support
jobs:
include:
- name: Bionic ROS1
env:
- DISTRIBUTION=18.04
- ROS_DISTRO=melodic
- ROS=ros
<<: *ros_build
- name: Xenial ROS1
env:
- DISTRIBUTION=16.04
- ROS_DISTRO=kinetic
- ROS=ros
<<: *ros_build
- name: Bionic ROS2
env:
- DISTRIBUTION=18.04
- ROS_DISTRO=eloquent
- ROS=ros2
<<: *ros2_build
- name: Focal ROS2
env:
- DISTRIBUTION=20.04
- ROS_DISTRO=foxy
- ROS=ros2
<<: *ros2_build
# setup the container with dependencies
install: docker build --target lanelet2_deps -t lanelet2_deps --build-arg=DISTRIBUTION=$DISTRIBUTION --build-arg=ROS_DISTRO=$ROS_DISTRO --build-arg ROS=$ROS .