forked from fkanehiro/hrpsys-base
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
110 lines (105 loc) · 8.52 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
cache: apt
language: generic
sudo: required
dist: trusty
notifications:
slack: jsk-robotics:Av7tc8wj3IWkLYvlTzHE7x2g
# TEST_TYPE:
# 1 : Check if this PR works with current downstream package
# 2 : Check if this PR works with 315.1.10
env:
global:
- secure: "ESSo9YL0lUB0nnlFIL1vV7zpOyZjgTign4IZR735laiylPjOLKW4BkP9JxT5alA9ip72qbpDKI192Ed3sSkWjjQxhM+/HIjtyOy5/F6U5wfvxWudorJeF4zCy4OBD7Bp9JWqucAkRmd5Qe3Djaih69rAK31IFeNhQ2Ebz6RWVGk="
matrix:
# test for normal hrpsys users, this will not depends on any ROS-related tools
- ROS_DISTRO=hydro TEST_PACKAGE=hrpsys
# - ROS_DISTRO=hydro TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
# - ROS_DISTRO=hydro TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=hydro TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=hydro TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# USE_SRC_OPENHRP3=false tests
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
- ROS_DISTRO=indigo TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# USE_SRC_OPENHRP3=false tests
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys
# - ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
# - ROS_DISTRO=kinetic TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=kinetic TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=kinetic TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# # USE_SRC_OPENHRP3=false tests
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
matrix:
allow_failures:
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
script:
- case $ROS_DISTRO in "hydro") export DISTRO=precise;; "indigo") export DISTRO=trusty;; "kinetic") export DISTRO=xenial;; esac;
- export DOCKER_IMAGE=ubuntu:$DISTRO
- export CI_SOURCE_PATH=$(pwd)
- docker images
- docker run -v $HOME:$HOME -e CI_SOURCE_PATH -e HOME -e DISTRO -e ROS_DISTRO -e ROS_LOG_DIR -e TEST_TYPE -e TEST_PACKAGE -e USE_SRC_OPENHRP3 -e COMILE_OPTION $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .travis.sh'
after_success:
- set +x
- export GIT_COMMITTER_NAME=$GIT_NAME
- export GIT_COMMITTER_EMAIL=$GIT_EMAIL
- export GIT_AUTHOR_NAME=$GIT_NAME
- export GIT_AUTHOR_EMAIL=$GIT_EMAIL
- echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST TRAVIS_BRANCH=$TRAVIS_BRANCH TEST_PACKAGE=$TEST_PACKAGE TEST_TYPE=$TEST_TYPE"
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cd ~/; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git clone --branch gh-pages https://github.com/$TRAVIS_REPO_SLUG doc; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cd doc; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cp -r ~/build/doc/html/* ./; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git status; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git checkout --orphan gh-pages-new; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git add -f .; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git commit -m "Build documents from $TRAVIS_COMMIT" . ; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git branch -D gh-pages; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git branch -m gh-pages; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git remote -v; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git push -f --quiet https://[email protected]/$TRAVIS_REPO_SLUG.git gh-pages; fi