forked from at-wat/neonavigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.93 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
services: docker
addons:
apt:
packages:
- python-pip
env:
global:
- PACKAGE_NAME=neonavigation
- DOCKER_CACHE_TARGET=neonavigation
- DOCKER_CACHE_REGISTRY=atwat/ros-neonavigation-cache
- secure: "qFXkdy85OQvELuGpGooz5S+BJucNfHPj3HcI2bcoDwqQXp4cNKVE8zyIgwmB5u4Csh3ccv6RGz8ZMMaqyOdaoTTUocU4hmyky5WdidBVo78suOi7Ka88poyZT+wcH+jE7wpRkc1G/IMp25wd2k2jBJk95D2mHclo4fCUfS3qxNYcylO3zAQZKLLAyVlp3Ae8094612LkYD9F5Fha4Ey2dgE3Qd2b01CwZc5PPi3XjrZQ1yl/zV4xaV0eRnGIMym+wo9tLE4qG99FW/lxMa5omddU5oSwu/bn7quV67J0U9xDzfPYhJzwYxXtl+IMfIJM+y3H1grjJ1lkXVk4FOd4J6iCOAHqrOVNWnwSPklB/5ei8O7RqUoNc0YG9fYS2PpwstaSCvC1bWHHLCF35wddz9wd2EUQv8g55oUVMAdKGK5H4eZb7CjkAhxNTeYHOteotkArMhI00lXhrHmHzv6vHdJvPFCNDPnkcCGyS84zF0S3lqyCrJSqo7YYgzP/JwHN3uk9VYQ6kduq+uDEND6iA6yKf76r7I7++RTtYY0CV1QVKcn7dESHfGeKz0LjHkQp8IwKxbYOSrLE8xRRhXMlHqHIAN/esJ54EgAgIEij9rJNSdzlteyA6D0iWrcTkkhDkrvkl+uUHqggm3CLT0k/MDfeEoQbwVdvbmxhlz6XOXo="
matrix:
- ROS_DISTRO_TARGET=indigo COVERAGE_TEST=false
- ROS_DISTRO_TARGET=indigo COVERAGE_TEST=true
- ROS_DISTRO_TARGET=kinetic COVERAGE_TEST=false
- ROS_DISTRO_TARGET=lunar COVERAGE_TEST=false
branches:
only:
- master
before_install:
- .travis/load_cache.sh
- pip install --user gh-pr-comment
install: true
script:
- docker build
--cache-from ${DOCKER_CACHE_REGISTRY}:${ROS_DISTRO_TARGET}
-t ${DOCKER_CACHE_TARGET}:${ROS_DISTRO_TARGET}
-f Dockerfile.${ROS_DISTRO_TARGET}
--pull=true ${TRAVIS_BUILD_DIR} || (gh-pr-comment "[#${TRAVIS_BUILD_NUMBER}] FAILED on ${ROS_DISTRO_TARGET}" "docker build failed"; false)
- docker run --rm -it
-e TRAVIS_PULL_REQUEST
-e TRAVIS_REPO_SLUG
-e TRAVIS_BOT_GITHUB_TOKEN
-e COVERAGE_TEST
-e GITHUB_API_URL_BASE
-e TRAVIS_BUILD_NUMBER
`bash <(curl -s https://codecov.io/env)`
${DOCKER_CACHE_TARGET}:${ROS_DISTRO_TARGET} /catkin_ws/src/${PACKAGE_NAME}/.travis/test.sh
- bash -c "[ x${COVERAGE_TEST} != xtrue ] && .travis/save_cache.sh || true"