-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
52 lines (43 loc) · 1.36 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
language: generic
os:
- osx
- linux
osx_image: xcode9.4
dist: xenial
env:
- CONFIGURE_OPTS=""
- CONFIGURE_OPTS="--disable-mpfp"
install:
- |
MINICONDA_URL="https://repo.continuum.io/miniconda"
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
else
MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"
fi
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b
source ~/miniconda3/bin/activate root
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda config --set always_yes yes
- export PREFIX=$HOME/local
- conda create --yes --quiet -p $PREFIX automake libtool gmp mpfr ntl libflint pari
script:
- export CPPFLAGS="-I$PREFIX/include $CPPFLAGS"
- export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib $LDFLAGS"
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
export CC=clang;
export CXX=clang++;
fi
- chmod +x autogen.sh
- ./autogen.sh
- chmod +x configure
- ./configure --prefix="$PREFIX" --with-ntl="$PREFIX" --with-pari="$PREFIX" --with-flint="$PREFIX" --with-boost="no" $CONFIGURE_OPTS
- make
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
make check;
else
make check;
fi