-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
33 lines (32 loc) · 859 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
language: python
matrix:
# allow_failures:
# - os: osx
include:
# - os: osx
# language: generic
- os: linux
sudo: required
python: 3.5
- os: linux
sudo: required
python: 3.6
- os: linux
sudo: required
python: 2.7
before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# command to install dependencies
install:
- sudo apt update
- sudo apt install libblas-dev liblapack-dev
- pip install flake8 pytest pytest-cov
- pip install .
# command to run tests + check syntax style
script:
- python setup.py develop
- flake8 examples/ optim/ test/
- python -m pytest -v test/ --cov=optim
# - py.test ot test