-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
36 lines (28 loc) · 984 Bytes
/
.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
sudo: required
notifications:
email: false
language: cpp
env:
global:
- DOCKER_TAG=v9.2.0-1
services:
- docker
before_install:
- sudo docker pull jsrehak/bart:$DOCKER_TAG
- ci_env=`bash <(curl -s https://codecov.io/env)`
install:
- sudo docker run jsrehak/bart:$DOCKER_TAG
- id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker cp ../BART $id:/home/bart
- id=$(sudo docker ps -l | tail -n1 | awk '{print $1}')
- sudo docker commit $id jsrehak/bart:$DOCKER_TAG
- sudo docker run $ci_env -it -u="root" -d -w="/home/bart/BART" --name bart jsrehak/bart:$DOCKER_TAG
script:
- docker exec bart cmake -DCMAKE_BUILD_TYPE=Debug .
- docker exec bart make -j4
- docker exec bart bash -c "./bart_test"
- docker exec bart bash -c "mpirun -np 2 --allow-run-as-root --oversubscribe ./bart_test --mpi -l 0"
after_success:
- docker exec bart bash -c "./coverage.sh"
- docker cp bart:/home/bart/BART/coverage.info .
- bash <(curl -s https://codecov.io/bash)