-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
46 lines (41 loc) · 1.21 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
dist: bionic
sudo: enabled
#language: c++, python
language: python
#c++:
# - "c++14"
python:
- "3.6"
env:
global:
- ROS2_WS_BOND=~/ros2_ws_bond
- ROS2_WS_BOND_SRC=${ROS2_WS_BOND}/src
# command to install dependencies
install:
- sudo apt update && sudo apt install curl gnupg2
- curl http://repo.ros2.org/repos.key | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64,arm64] http://repo.ros2.org/ubuntu/main `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
- export ROS_DISTRO=bouncy
- sudo apt update && sudo apt install -y python3-rosdep ros-$ROS_DISTRO-ros-base
- sudo apt install python3-argcomplete
- sudo apt install python3-colcon-common-extensions
- sudo apt install build-essential
- source /opt/ros/$ROS_DISTRO/setup.bash
- sudo rosdep init
- rosdep update
- sudo apt install python3-pip
- sudo pip3 install argcomplete setuptools pytest pep257 flake8
- sudo -H python3 -m pip install -U setuptools
# command to run tests for bond
script:
- mkdir -p $ROS2_WS_BOND
- mkdir -p $ROS2_WS_BOND_SRC
- ln -s $TRAVIS_BUILD_DIR $ROS2_WS_BOND_SRC
- cd $ROS2_WS_BOND
- colcon build
- colcon test
branches:
only:
- ros2-devel
notifications:
email: false