-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
45 lines (37 loc) · 999 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
34
35
36
37
38
39
40
41
42
[tox]
envlist = docs, py39, flake8
[travis]
python =
3.9: py39, flake8
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 --ignore=E501 simfleet
[testenv:docs]
basepython=python
changedir=docs
deps=sphinx
setenv =
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
commands=
pip install --upgrade pip
pip install -r{toxinidir}/requirements_dev.txt
pip install -r{toxinidir}/requirements.txt
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv =
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
deps =
-r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
-r{toxinidir}/requirements.txt
commands =
pip install --upgrade pip
pip install -r{toxinidir}/requirements_dev.txt -r{toxinidir}/requirements.txt
py.test --basetemp={envtmpdir} --cov=simfleet