forked from galaxyproject/ephemeris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (38 loc) · 1.09 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
33
34
35
36
37
38
39
40
41
42
43
# TODO: implement doc linting
[tox]
envlist = py{36}-lint, py{36}-pytest, py{36}, py{36}-integration
source_dir = src/ephemeris
test_dir = tests
[testenv]
commands = {envpython} setup.py nosetests []
whitelist_externals = bash
[testenv:py36-lint]
commands = flake8 {[tox]source_dir} {[tox]test_dir}
skip_install = True
deps =
flake8
flake8-import-order
[testenv:py36-pytest]
deps =
-r requirements.txt
pytest
pytest-cov
coverage
codacy-coverage
docker
whitelist_externals = sed
bash
commands =
pytest -v --cov={envsitepackagesdir}/ephemeris --cov-report xml {[tox]test_dir}
# Replace the installed package directory by the source directory.
# This is needed for codacy to understand which files have coverage testing
# Unfortunately this has to run in the tox env to have access to envsitepackagesdir
sed -i 's#{envsitepackagesdir}#src#' coverage.xml
[testenv:py36]
deps =
-r requirements.txt
commands = bash {[tox]test_dir}/test.sh
[testenv:py36-integration]
deps =
-r requirements.txt
commands = bash {[tox]test_dir}/test.sh