-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
80 lines (72 loc) · 2.01 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
language: cpp
sudo: required
dist: bionic
env:
global:
- IS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
- OS_NAME=$TRAVIS_OS_NAME
- BUILD_DIR=$TRAVIS_BUILD_DIR
- CI=TRAVIS
matrix:
include:
# TODO: Fix CODECOV reporting
- os: linux
compiler: gcc
env:
- BUILD_NAME=XENIAL_GCC_DEBUG_LLVM6_0
- BUILD_TYPE=Debug
- COMPILER=GCC
- LLVM_VERSION=6.0
- PYTHON_VERSION=3.5
- DOCKERFILE="Dockerfile.ubuntu-xenial"
services: docker
- os: linux
compiler: gcc
env:
- BUILD_NAME=BIONIC_GCC_DEBUG_LLVM6_0
- BUILD_TYPE=Debug
- COMPILER=GCC
- LLVM_VERSION=6.0
- PYTHON_VERSION=3.6
- DOCKERFILE="Dockerfile.ubuntu-bionic"
services: docker
- os: linux
compiler: gcc
env:
- BUILD_NAME=EOAN_GCC_DEBUG_LLVM9
- BUILD_TYPE=Debug
- COMPILER=GCC
- LLVM_VERSION=9
- PYTHON_VERSION=3.7
- DOCKERFILE="Dockerfile.ubuntu-eoan"
services: docker
- os: linux
compiler: gcc
env:
- BUILD_NAME=FOCAL_GCC_DEBUG_LLVM9
- BUILD_TYPE=Debug
- COMPILER=GCC
- LLVM_VERSION=9 # 10 is the default but Chimera doesn't work with it
- PYTHON_VERSION=3.8
- DOCKERFILE="Dockerfile.ubuntu-focal"
services: docker
before_install:
- if [ -n "$DOCKERFILE" ]; then
docker build -t "${DOCKERFILE,,}" -f ".ci/docker/$DOCKERFILE" .;
docker run -itd -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR --env-file .ci/docker/env.list --name chimera-docker "${DOCKERFILE,,}";
fi
install:
- if [ -n "$DOCKERFILE" ]; then
docker exec chimera-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && . .ci/install.sh";
else
. .ci/install.sh;
fi
script:
- if [ -n "$DOCKERFILE" ]; then
docker exec chimera-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && . .ci/script.sh";
else
. .ci/script.sh;
fi
after_failure:
- cat Testing/Temporary/LastTest.log
- cat Testing/Temporary/LastTestsFailed.log