forked from symengine/symengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
211 lines (205 loc) · 6.21 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
language: cpp
sudo: false
compiler:
- gcc
- clang
os:
- linux
- osx
dist: trusty
osx_image: xcode7.3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-4.7
env:
global:
- secure: "Xj8vvg++O4mhcUTQGtHqXHhn8o5LklI/GkGWO6fcRXlJQszvpSMQiYfJ1UAYlmmuvXRNjWWdhEr7inJdHe1ZtNSXVU/jEICUytFBG6T3uuhOsBPkjVTp2en5vwsSPohaHcAnhoDyK9L48SBcTKLTCkTMhOitj9jk2renem0dX84="
## All these variables are sent into the bin/test_travis.sh script. See this
## script to know how they are used. Most of them are just passed to cmake,
## so if they are not set, cmake will use a default value. For the rest, the
## bin/test_travis.sh script usually checks for either "yes" or "no" in an if
## statement, so if the variable is not set, the other if branch will get
## executed.
matrix:
## Out of tree builds (default):
# Debug build (with BFD)
- BUILD_TYPE="Debug" WITH_BFD="yes"
# Debug build (with BFD and SYMENGINE_THREAD_SAFE)
- BUILD_TYPE="Debug" WITH_BFD="yes" WITH_SYMENGINE_THREAD_SAFE="yes"
# Debug build (with BFD, ECM, PRIMESIEVE and MPC)
- BUILD_TYPE="Debug" WITH_BFD="yes" WITH_ECM="yes" WITH_PRIMESIEVE="yes" WITH_MPC="yes"
# Debug build (with BFD, Flint and Arb and INTEGER_CLASS from flint)
- BUILD_TYPE="Debug" WITH_BFD="yes" WITH_ARB="yes" INTEGER_CLASS="flint" WITH_MPC="yes" BUILD_DOXYGEN="yes" TEST_IN_TREE="yes"
# Debug build (with BFD, MPFR and INTEGER_CLASS from gmpxx)
- BUILD_TYPE="Debug" WITH_SYMENGINE_RCP="yes" WITH_MPFR="yes" INTEGER_CLASS="gmpxx"
# Debug build (with BFD and INTEGER_CLASS from boostmp)
- BUILD_TYPE="Debug" WITH_BFD="yes" INTEGER_CLASS="boostmp"
# Debug build shared lib (with BFD)
- BUILD_TYPE="Debug" WITH_BFD="yes" BUILD_SHARED_LIBS="yes"
# Release build (with BFD)
- WITH_BFD="yes"
# Release shared build (with BFD)
- WITH_BFD="yes" BUILD_SHARED_LIBS="yes"
## In-tree builds (we just check a few configurations to make sure they work):
# Debug build:
- BUILD_TYPE="Debug" WITH_BFD="yes" TEST_IN_TREE="yes"
matrix:
exclude:
- compiler: clang
- os: osx
include:
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_LATEST_GCC="yes" WITH_COVERAGE="yes" WITH_MPC="yes" WITH_LLVM="8.0" USE_GLIBCXX_DEBUG="yes"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-8
packages:
- clang-8
- llvm-8-dev
- binutils-dev
- g++-8
- env: TEST_CLANG_FORMAT="yes"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-format-3.8
install:
- echo "nothing to install"
script:
- bin/travis_clang_format.sh
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_GCC_6="yes" WITH_PIRANHA="yes" MAKEFLAGS="-j2" BUILD_SHARED_LIBS="yes"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-6
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_COVERAGE="yes" TEST_IN_TREE="yes" WITH_FLINT="yes" WITH_FLINT_DEV="yes" WITH_MPC="yes" BUILD_BENCHMARKS="no" MAKEFLAGS="-j2"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-4.7
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_PIRANHA="yes" INTEGER_CLASS="piranha" MAKEFLAGS="-j2"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-4.8
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_LLVM="6.0" WITH_BENCHMARKS_NONIUS="yes"
compiler: clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-6.0
- libstdc++-4.8-dev
- libgmp-dev
- binutils-dev
- llvm-6.0-dev
- env: BUILD_TYPE="Release"
compiler: clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang
- libstdc++-4.8-dev
- libgmp-dev
- env: BUILD_TYPE="Debug" WITH_LLVM="3.8"
compiler: clang
os: osx
- env: BUILD_TYPE="Release" WITH_LLVM="5.0"
compiler: clang
os: osx
- env: BUILD_TYPE="Debug"
compiler: gcc
os: osx
- env: BUILD_TYPE="Release"
compiler: gcc
os: osx
- env: BUILD_TYPE="Debug" WITH_SANITIZE="address" WITH_LLVM="7.0"
compiler: clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
- llvm-7-dev
- env: BUILD_TYPE="Debug" WITH_SANITIZE="undefined" WITH_LLVM="7.0"
compiler: clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
- llvm-7-dev
- env: CONDA_ENV_FILE="binder/environment.yml"
compiler: gcc
os: linux
script:
- bin/test_cling_notebook.sh
- env: CONDA_ENV_FILE="symengine/utilities/matchpycpp/environment.yml"
compiler: gcc
os: linux
script:
- bin/test_matchpycpp_gen_tests.sh
before_install:
- |
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -;
rvm get head || true
fi
install:
- source bin/install_travis.sh
script:
- bin/test_travis.sh
- bin/trigger_feedstock.sh
notifications:
email: false
deploy:
provider: pages
skip_cleanup: true
repo: symengine/symengine.github.io
target_branch: master
local_dir: doc/html
github_token:
secure: "nA/geBch3kWX4aURwe52JZNEG/JDR4RRkMvWqoqKTbnma54ohOokwaBlwmSc7lcmiq6YP8nI7uSCtK7EtqatJZewxNTNP8JXcuPb1IRuCXIvusakmk4iEqveEun5Igfge/6e6K/ujUiZchDT9ucEkxGNIAYDwrW0MPQ3ZG0Tla0="
on:
branch: master
repo: symengine/symengine
condition: $BUILD_DOXYGEN = yes