forked from fzi-forschungszentrum-informatik/Lanelet2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (21 loc) · 934 Bytes
/
.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
# Use docker with sudo privileges.
sudo: required
services: docker
# Build this with both 18.04 and 16.04
matrix:
include:
- env:
- DISTRIBUTION=18.04
- ROS_DISTRO=melodic
- env:
- DISTRIBUTION=16.04
- ROS_DISTRO=kinetic
# setup the container with dependencies
install: docker build --target lanelet2_deps -t lanelet2_deps --build-arg=DISTRIBUTION=$DISTRIBUTION --build-arg=ROS_DISTRO=$ROS_DISTRO .
# start the container with the code, build and test
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