forked from Normaliz/PyNormaliz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 860 Bytes
/
.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
dist: xenial
language: python
python:
- "2.7"
- "3.6"
cache: ccache
addons:
apt:
update: true
apt_packages:
- libgmp-dev
- libmpfr-dev
- libflint-dev
- libboost-dev
- autoconf
- automake
- libtool
env:
- EANTIC=no
- EANTIC=yes
install:
- export MAKEFLAGS="-j2"
- export PIP=$(which pip) # workaround so that sudo uses correct pip
# install normaliz
- ./.travis-install-normaliz.sh
# install pynormaliz
- sudo $PIP install --no-index --no-deps -v .
script:
- export OMP_NUM_THREADS=4
# run tests
- python setup.py test
# uninstall, make source distribution and reinstall from it
# and check that the module can be imported
- sudo $PIP uninstall -y PyNormaliz
- make sdist
- sudo $PIP install --no-index --no-deps -v dist/PyNormaliz-*.tar.gz
- python -c "import PyNormaliz"