forked from Normaliz/PyNormaliz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 976 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
38
39
40
41
42
43
44
45
dist: xenial
language: c
cache: ccache
addons:
apt:
update: true
apt_packages:
- libgmp-dev
- libmpfr-dev
- libflint-dev
- libboost-dev
- autoconf
- automake
- libtool
- python-pip
- python3-pip
- python3-setuptools
env:
- PY="2"
EANTIC="no"
- PY="2"
EANTIC="yes"
- PY="3"
EANTIC="no"
- PY="3"
EANTIC="yes"
install:
- export MAKE="make -j2"
- export PYTHON="python${PY}"
- export PIP="pip${PY}"
- export PIPINSTALL="${PIP} install --no-index --no-deps -v"
# install normaliz
- ./.travis-install-normaliz.sh
# install pynormaliz
- sudo $PIPINSTALL .
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 $PIPINSTALL dist/PyNormaliz-*.tar.gz
- $PYTHON -c "import PyNormaliz"