forked from symengine/symengine.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
128 lines (116 loc) · 3.49 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
language: cpp
compiler:
- gcc
- clang
os:
- linux
- osx
sudo: false
osx_image: xcode6.4
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-4.7
env:
## 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:
# Debug builds:
- BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TEST_SYMPY="yes"
- BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6" TEST_SYMPY="yes"
# Release builds:
- PYTHON_VERSION="2.7" BUILD_SHARED_LIBS="yes"
- PYTHON_VERSION="2.7" WITH_MPFR="yes" INTEGER_CLASS="gmpxx" WITH_NUMPY="no"
- PYTHON_VERSION="3.7" WITH_MPC="yes"
- PYTHON_VERSION="3.7" WITH_MPFR="yes"
- PYTHON_VERSION="3.5" WITH_MPC="yes"
- PYTHON_VERSION="3.6" WITH_MPC="yes" INTEGER_CLASS="flint" WITH_FLINT="yes"
matrix:
exclude:
- compiler: clang
- os: osx
include:
- env: BUILD_TYPE="Debug" WITH_BFD="yes" WITH_PIRANHA="yes" PYTHON_VERSION="2.7"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- g++-4.8
- env: BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.5" BUILD_SHARED_LIBS="yes"
compiler: clang
os: linux
- env: BUILD_TYPE="Release" PYTHON_VERSION="2.7" WITH_NUMPY="no"
compiler: clang
os: linux
- env: BUILD_TYPE="Debug" PYTHON_VERSION="3.6" WITH_SYMPY="no" WITH_LLVM="8.0" WITH_SCIPY="yes" CC="gcc-4.8" CXX="g++-4.8"
compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-8
packages:
- g++-4.8
- libstdc++-4.8-dev
- binutils-dev
- llvm-8-dev
- env: BUILD_TYPE="Debug" PYTHON_VERSION="2.7" WITH_LLVM="5.0" WITH_SCIPY="yes"
compiler: clang
os: osx
- env: BUILD_TYPE="Release" PYTHON_VERSION="3.5" WITH_NUMPY="no"
compiler: clang
os: osx
- env: BUILD_TYPE="Debug" PYTHON_VERSION="2.7" WITH_NUMPY="no"
compiler: gcc
os: osx
- env: BUILD_TYPE="Release" PYTHON_VERSION="3.5"
compiler: gcc
os: osx
- env: BUILD_TYPE="Release" WITH_SAGE="yes" WITH_MPC="yes" PYTHON_VERSION="2.7"
compiler: gcc
os: linux
allow_failures:
- env: BUILD_TYPE="Release" WITH_SAGE="yes" WITH_MPC="yes" PYTHON_VERSION="2.7"
before_install:
- |
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -;
rvm get head || true
fi
install:
- export PYTHON_SOURCE_DIR=`pwd`
- export TEST_CPP="no"
- export MAKEFLAGS="-j2"
- git clone https://github.com/symengine/symengine symengine-cpp
- cd symengine-cpp
- export SOURCE_DIR=`pwd`
- git checkout `cat ../symengine_version.txt`
- cd ..
# Setup travis for C++ library
- cd $SOURCE_DIR
- source bin/install_travis.sh
# Setup travis for Python wrappers
- cd $PYTHON_SOURCE_DIR
- source bin/install_travis.sh
# Build C++ library
- cd $SOURCE_DIR
- bin/test_travis.sh
- unset MAKEFLAGS
script:
# Build Python wrappers and test
- cd $PYTHON_SOURCE_DIR
- bin/test_travis.sh
notifications:
email: false