Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 14 additions & 42 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,31 @@
sudo: required
language: generic
# This config file for Travis CI utilizes ros-industrial/industrial_ci package.
# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst
services:
- docker
language: generic

branches:
except:
- gh-pages

env:
global:
- CONTAINER_NAME=pyros_utils_docker
# This will check any ROS distro supported on this OS
# checking devel and install separately so that they don't influence each other (dependencies, path, env, etc.)
- VERBOSE_OUTPUT=true
- WRITABLE_SOURCE=true # needed by pip (creates egg-info in source)
- AFTER_SCRIPT='$CATKIN_WORKSPACE/install/env.sh python -m nose pyros_utils'
- ROS_PARALLEL_JOBS="-j1" # to avoid tests breaking each other
matrix:
- ROS_DISTRO=indigo ROS_FLOW=devel
- ROS_DISTRO=indigo ROS_FLOW=install

- ROS_DISTRO=jade ROS_FLOW=devel
- ROS_DISTRO=jade ROS_FLOW=install

- ROS_DISTRO=kinetic ROS_FLOW=devel
- ROS_DISTRO=kinetic ROS_FLOW=install

before_install:
# Getting docker ros image
- docker pull ros:${ROS_DISTRO}-ros-core
# Running as daemon
- docker run --name ${CONTAINER_NAME} -d -t ros:${ROS_DISTRO}-ros-core /bin/bash | tee container.id
# Switching to use ros shadow fixed packages
- docker exec -ti ${CONTAINER_NAME} /bin/bash -c "sed -i.bak -e s,packages.ros.org/ros/ubuntu,packages.ros.org/ros-shadow-fixed/ubuntu, /etc/apt/sources.list.d/ros-latest.list"
# Checking current container
- docker ps -a
- docker exec -ti ${CONTAINER_NAME} hostname
- docker exec -ti ${CONTAINER_NAME} uname -a
- docker exec -ti ${CONTAINER_NAME} cat /etc/lsb-release
# We are only interested in shadow-fixed compatibility here
- ROS_DISTRO=indigo DOCKER_IMAGE=rosindustrial/ci:indigo-trusty-shadow-fixed
- ROS_DISTRO=kinetic DOCKER_IMAGE=rosindustrial/ci:kinetic-xenial-shadow-fixed
- ROS_DISTRO=lunar DOCKER_IMAGE=rosindustrial/ci:lunar-xenial-shadow-fixed

install:
# refreshing packages
- docker exec -ti ${CONTAINER_NAME} apt-get update
# TMP Patch because rosdep doesnt declare a dependency to sudo yet (2016-08-25) and it doesnt come with xenial
- docker exec -ti ${CONTAINER_NAME} apt-get install sudo -y
- docker exec -ti ${CONTAINER_NAME} rosdep update
# copying local clone to the running container (volume is currently broken)
- docker cp . ${CONTAINER_NAME}:/git_clone
# Installing package dependencies
- docker exec -ti ${CONTAINER_NAME} rosdep install --default-yes --from-paths /git_clone --rosdistro $ROS_DISTRO
- git clone -b target-repo-rw https://github.com/ipa-mdl/industrial_ci.git .ci_config

# full ROS setup, build and test
script:
- CONTAINER_ID=$(cat container.id)
- docker ps -a
- docker exec -ti ${CONTAINER_NAME} /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && rospack profile"
# Passing env vars here since passing in docker run currently breaks (2016-08-25)
- docker exec -ti ${CONTAINER_NAME} /bin/bash -c "export ROS_DISTRO=$ROS_DISTRO && export ROS_FLOW=$ROS_FLOW && /git_clone/travis_checks.bash"
- docker stop "${CONTAINER_ID}"
- .ci_config/travis.sh

notifications:
email: false

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pyros-utils
===========

.. image:: https://travis-ci.org/asmodehn/pyros-utils.svg?branch=indigo
:target: https://travis-ci.org/asmodehn/pyros-utils
.. image:: https://travis-ci.org/pyros-dev/pyros-utils.svg?branch=devel
:target: https://travis-ci.org/pyros-dev/pyros-utils

This is a ROS package, providing useful ROS addons for pyros.

Expand Down
33 changes: 0 additions & 33 deletions travis_checks.bash

This file was deleted.