forked from libdynd/libdynd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
174 lines (168 loc) · 5.51 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
dist: bionic
language: c++
git:
submodules: true
matrix:
include:
- os: osx
osx_image: xcode11.6
before_script:
- export CC=clang
- export CXX=clang++
- mkdir build
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGALOIS_ENABLE_DIST=ON || exit 1
- env:
- GCC_VER=7
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- gcc-7
- g++-7
- cmake
- env:
- GCC_VER=8
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- gcc-8
- g++-8
- cmake
- env:
- GCC_VER=9
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- gcc-9
- g++-9
- cmake
- env:
- GCC_VER=10
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- gcc-10
- g++-10
- cmake
- env:
- GCC_VER=10
- BUILD_TYPE=Debug
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- gcc-10
- g++-10
- cmake
- env:
- CLANG_VER=7
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- clang-7
- cmake
- env:
- CLANG_VER=8
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- clang-8
- cmake
- env:
- CLANG_VER=9
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- clang-9
- cmake
- env:
- CLANG_VER=10
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- clang-10
- cmake
- env:
- CLANG_VER=10
- BUILD_TYPE=Debug
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- clang-10
- cmake
before_script:
# Depending on whether GCC_VER or CLANG_VER is set and nonempty,
# set CC and CXX accordingly.
- |
if [ -n "$GCC_VER" ]; then
export CC="gcc-$GCC_VER"
export CXX="g++-$GCC_VER"
fi
- |
if [ -n "$CLANG_VER" ]; then
export CC="clang-$CLANG_VER"
export CXX="clang++-$CLANG_VER"
fi
- |
# Check if BUILD_TYPE is set at all, not just whether it is empty or unset.
# See https://stackoverflow.com/a/13864829/1935144.
if [ -z ${BUILD_TYPE+x} ]; then
export BUILD_TYPE=Release
fi
- mkdir build
# Use apt-installed cmake rather than travis-provided one
# (/usr/local/cmake-3.12.4/bin/cmake).
- /usr/bin/cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE || exit 1
script:
- cmake --build build --parallel 4 || exit 1
- ./build/tests/test_libdynd
notifications:
email: false