-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
47 lines (46 loc) · 2.29 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
# Original Author: William Woodall, Mani Monajjemi
sudo: required
dist: trusty
# Force travis to use its minimal image with default Python settings
language: generic
compiler:
- gcc
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
matrix:
- CI_ROS_DISTRO="indigo" DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- CI_ROS_DISTRO="kinetic" DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- CI_ROS_DISTRO="melodic" DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- CI_ROS_DISTRO="melodic" DEB_REPOSITORY=http://packages.ros.org/ros-testing/ubuntu
- CI_ROS_DISTRO="noetic" DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- CI_ROS_DISTRO="noetic" DEB_REPOSITORY=http://packages.ros.org/ros-testing/ubuntu
matrix:
allow_failures:
- env: CI_ROS_DISTRO="noetic" DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- env: CI_ROS_DISTRO="noetic" DEB_REPOSITORY=http://packages.ros.org/ros-testing/ubuntu
notifications:
email:
recipients:
- dev@opensource-robotics.tokyo.jp
on_success: always #[always|never|change] # default: change
on_failure: always #[always|never|change] # default: always
before_install:
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${PWD##*/}
# use host xserver
- sudo apt-get update -q || echo Ignore error of apt-get update
- sudo apt-get -y -qq install mesa-utils x11-xserver-utils xserver-xorg-video-dummy
- export DISPLAY=:0
- sudo Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile /tmp/xorg.log -config $CI_SOURCE_PATH/.xorg.conf $DISPLAY &
- sleep 3 # wait x server up
- glxinfo | grep GLX
- export QT_X11_NO_MITSHM=1 # http://wiki.ros.org/docker/Tutorials/GUI
- xhost +local:root
# docekr setup
- case $CI_ROS_DISTRO in "hydro") export DISTRO=precise;; "indigo") export DISTRO=trusty;; "kinetic") export DISTRO=xenial;; "melodic") export DISTRO=bionic;; "noetic") export DISTRO=focal;; esac;
- export DOCKER_IMAGE=ubuntu:$DISTRO
- docker images
script:
- docker run -v $HOME:$HOME -v /tmp/.X11-unix:/tmp/.X11-unix -e QT_X11_NO_MITSHM -e DISPLAY -e CI_SOURCE_PATH -e REPOSITORY_NAME -e HOME -e DISTRO -e CI_ROS_DISTRO -e DEB_REPOSITORY -e CI_SOURCE_PATH -e CATKIN_WS -e CATKIN_WS_SRC -e TRAVIS_BUILD_DIR $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .travis.sh'