forked from jsk-enshu/robot-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (19 loc) · 965 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo: required
dist: trusty
language: generic
env:
matrix:
- ROS_DISTRO="kinetic" REPOSITORY=http://packages.ros.org/ros/ubuntu
- ROS_DISTRO="kinetic" REPOSITORY=http://packages.ros.org/ros-testing/ubuntu
- ROS_DISTRO="melodic" REPOSITORY=http://packages.ros.org/ros/ubuntu
- ROS_DISTRO="melodic" REPOSITORY=http://packages.ros.org/ros-testing/ubuntu
# matrix:
# allow_failures:
# - env: ROS_DISTRO="melodic" REPOSITORY=http://packages.ros.org/ros/ubuntu
install:
- case $ROS_DISTRO in "hydro") export DISTRO=precise;; "indigo") export DISTRO=trusty;; "kinetic") export DISTRO=xenial;; "melodic") export DISTRO=bionic;; esac;
- export DOCKER_IMAGE=ubuntu:$DISTRO
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${PWD##*/}
- docker images
- docker run -v $HOME:$HOME -e CI_SOURCE_PATH -e REPOSITORY_NAME -e HOME -e DISTRO -e ROS_DISTRO -e REPOSITORY $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .travis.sh'