forked from carla-simulator/ros-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
97 lines (87 loc) · 2.53 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Copyright (c) 2019 Intel Corporation
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#
os: linux
stages:
- check
- test
- docker
cache:
- apt
addons:
apt:
packages:
- python-pip
jobs:
include:
- name: "Check code formatting"
stage: check
before_install: skip
install: pip install --user -r requirements.txt
script:
- make check_format
- name: "Xenial Kinetic"
stage: test
dist: xenial
env:
- ROS_DISTRO=kinetic
- PYTHON_SUFFIX=""
- name: "Bionic Melodic"
dist: bionic
env:
- ROS_DISTRO=melodic
- PYTHON_SUFFIX=""
- name: "Focal Noetic"
dist: focal
env:
- ROS_DISTRO=noetic
- PYTHON_SUFFIX=3
addons:
apt:
packages:
- python3-pip
- name: "Docker Melodic"
stage: docker
services: docker
before_install: skip
install: skip
script: cd docker && ./build.sh --build-arg ROS_VERSION=melodic
- name: "Docker Noetic"
services: docker
before_install: skip
install: skip
script: cd docker && ./build.sh --build-arg ROS_VERSION=noetic --build-arg PYTHON_VERSION=3.7
before_install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt update
- sudo apt install -y ros-$ROS_DISTRO-desktop-full python$PYTHON_SUFFIX-osrf-pycommon python$PYTHON_SUFFIX-catkin-tools python$PYTHON_SUFFIX-catkin-pkg python$PYTHON_SUFFIX-catkin-pkg-modules python$PYTHON_SUFFIX-rosdep python$PYTHON_SUFFIX-wstool
install:
- pip$PYTHON_SUFFIX install --user -r requirements.txt
- mkdir ros-bridge/
- shopt -s dotglob
- shopt -s extglob
- mv !(ros-bridge) ros-bridge/
- mkdir -p catkin_ws/src
- cd catkin_ws/src
- ln -s ../../ros-bridge
- cd ..
- source /opt/ros/$ROS_DISTRO/setup.bash
- sudo rosdep init
- rosdep update
- rosdep install --from-paths src --ignore-src -r
script:
- catkin build
- export SCENARIO_RUNNER_PATH="" # the env var needs to be set for testing
- if [ ! $ROS_DISTRO -eq kinetic ]; then catkin test; fi;
- catkin config --install
- source devel/setup.bash
- cd src/ros-bridge
- if [ ! $ROS_DISTRO -eq noetic ]; then make pylint; fi;
after_failure:
- tail --lines=2000 build.log
notifications:
email: false