forked from rigetti/grove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
33 lines (28 loc) · 735 Bytes
/
tox.ini
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
[tox]
envlist = py27, py36
[testenv]
whitelist_externals =
/bin/echo
recreate=
True
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/grove
MPLBACKEND = Agg
deps=
numpy
commands=
pip install -r requirements.txt
; check docs build correctly without complicated deps
sphinx-build -b html docs/ docs/_build
pip install cython==0.24.1
pip install qutip==4.1
pip install scs==1.2.6
pip install cvxpy
# backend that works without X running
echo "backend : Agg" > ~/.config/matplotlib/matplotlibrc
echo "backend : Agg" > ~/.matplotlibrc
echo "backend : Agg" > examples/matplotlibrc
; unit tests
py.test --cov=grove
; test example notebooks work
./demo_tests.sh