forked from gem/oq-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
32 lines (31 loc) · 1.02 KB
/
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
[tox]
minversion = 3.4.0
envlist = py{36,37}-{linux,macos}
skipsdist = True
[testenv]
platform =
linux: linux
macos: darwin
deps =
pip
pytest
pytest-xdist
py36-linux: -rrequirements-py36-linux64.txt
py37-linux: -rrequirements-py37-linux64.txt
py36-macos: -rrequirements-py36-macos.txt
py37-macos: -rrequirements-py37-macos.txt
commands_pre =
pip install -e .
oq dbserver start
commands =
pytest {posargs} --doctest-modules -v openquake/engine
pytest {posargs} --doctest-modules -v openquake/server
pytest {posargs} --doctest-modules -v openquake/calculators
pytest {posargs} --doctest-modules -v openquake/baselib
OQ_DISTRIBUTE=no pytest {posargs} -n auto --doctest-modules -v openquake/hazardlib
pytest {posargs} --doctest-modules -v openquake/risklib
pytest {posargs} --doctest-modules -v openquake/commonlib
pytest {posargs} --doctest-modules -v openquake/commands
pytest {posargs} --doctest-modules -v openquake/hmtk
commands_post =
oq dbserver stop