-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
41 lines (34 loc) · 901 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
language: python
python:
- "2.7"
- "3.6"
env:
- GLPK_VERSION=4.65
- GLPK_VERSION=5.0
branches:
only:
- master
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libgmp3-dev
- wget http://ftp.gnu.org/gnu/glpk/glpk-${GLPK_VERSION}.tar.gz
- tar xzf glpk-${GLPK_VERSION}.tar.gz
- pushd glpk-${GLPK_VERSION} && ./configure --prefix=/usr && make && sudo make install && popd
install:
- pip install cpp-coveralls setuptools_scm tox-travis
script:
- tox -v
- pip install .
- python examples/correlation.py
- python examples/hamiltonian.py
- python examples/maxflow.py
- python examples/sat.py
- python examples/sat2.py
# skip this example for now
#- python examples/threads.py
after_success:
- coveralls --exclude-pattern 'glpk-*' --exclude tests --gcov-options '\-lp'
notifications:
email:
on_success: never
on_failure: always