From 8f346149514bdad318e21be778016cecec92af5a Mon Sep 17 00:00:00 2001 From: Peter Fankhauser Date: Mon, 18 Apr 2016 13:50:29 +0200 Subject: [PATCH] Added travis.yml file. --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..afed125f7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +sudo: true +dist: trusty +language: python +python: + - "3.4" +env: + global: + - JOB_PATH=/tmp/devel_job + matrix: + - ROS_DISTRO_NAME=indigo OS_NAME=ubuntu OS_CODE_NAME=trusty ARCH=amd64 + #- ROS_DISTRO_NAME=jade OS_NAME=ubuntu OS_CODE_NAME=trusty ARCH=amd64 + #- ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64 +install: + # either install the latest released version of ros_buildfarm + # (TODO the current release 1.0.1 is not sufficient so for now use the master branch) + #- pip install ros_buildfarm + # or checkout a specific branch + - git clone -b master https://github.com/ros-infrastructure/ros_buildfarm /tmp/ros_buildfarm + - pip install /tmp/ros_buildfarm + # checkout catkin for catkin_test_results script + - git clone https://github.com/ros/catkin /tmp/catkin + # run devel job for a ROS repository with the same name as this repo + - export REPOSITORY_NAME=`basename $TRAVIS_BUILD_DIR` + # use the code already checked out by Travis + - mkdir -p $JOB_PATH/catkin_workspace/src + - cp -R $TRAVIS_BUILD_DIR $JOB_PATH/catkin_workspace/src/ + # generate the script to run a devel job for that target and repo + - generate_devel_script.py https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml $ROS_DISTRO_NAME default $REPOSITORY_NAME $OS_NAME $OS_CODE_NAME $ARCH > $JOB_PATH/devel_job.sh + - cd $JOB_PATH + - cat devel_job.sh + # run the actual job which involves Docker + - sh devel_job.sh -y +script: + # get summary of test results + - /tmp/catkin/bin/catkin_test_results $JOB_PATH/catkin_workspace/test_results --all +notifications: + email: false