-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 1.44 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
################################################################################
# Use ubuntu trusty (14.04) with sudo privileges.
dist: trusty
sudo: required
# Set build matrix and global CI env variables
env:
global:
- DOCKER_CACHE_DIR=$HOME/docker_cache
# MODIFY_ME: You must edit DOCKER_CI_REL_DIR to match your repo
- DOCKER_CI_REL_DIR=dependencies/ros_docker_ci
matrix:
- DOCKER_DISTRO=trusty
- DOCKER_DISTRO=xenial
################################################################################
before_install:
- git submodule init
- git submodule -q update
# Load the cached docker container. Otherwise, delete and rebuild it.
#
# NOTE: The repo must have a the following script:
# scripts/install_deps_for_docker_ci
# which defines how the docker container performs setup. Ideally this will just
# wrap the repo's standard script for installing dependencies
install:
- travis_wait 45 bash ${DOCKER_CI_REL_DIR}/docker-setup-ci.bash
# Execute the CI script using the docker container
#
# MODIFY_ME: You must edit this call's argument to match your repo
#
# docker-run-ci.sh takes one argument:
# {1}: The relative path to the respository's own CI test script
script:
- bash ${DOCKER_CI_REL_DIR}/docker-run-ci.bash scripts/run-ci-tests.bash
# Cache the docker container if it was rebuilt above.
before_cache:
- bash ${DOCKER_CI_REL_DIR}/save-docker-cache-ci.bash
cache:
directories:
- $HOME/docker_cache
timeout: 1200