-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (28 loc) · 1.1 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
dist: trusty
sudo: required
services:
- docker
language: cpp
compiler:
- gcc
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- docker pull utkrobotics/rip_deps
before_script:
# get cached images from
- docker build --tag rip_ci .
# - ./travis/before_script.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_BRANCH
# - ./travis/compile_g2o.sh
# start the container persistence:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker run --name rip_ci $ci_env -t -d rip_ci zsh -l
# run setup in container:
- docker exec -t rip_ci zsh -c "./travis/before_script.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_BRANCH"
- docker start rip_ci
script:
- docker exec -t rip_ci zsh -c "./travis/script.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_BRANCH"
after_script:
# - ./travis/after_script.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_BRANCH
- docker exec -t rip_ci zsh -c "./travis/after_script.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_BRANCH"
- docker stop rip_ci
- docker rm rip_ci