forked from galaxyproject/ephemeris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (56 loc) · 1.44 KB
/
tox.ini
File metadata and controls
64 lines (56 loc) · 1.44 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# TODO: implement doc linting
[tox]
envlist = py{27,35}-lint, py27-lint-readme,py{27,35}-pytest, py{27,35}
source_dir = src/ephemeris
test_dir = tests
[testenv]
commands = {envpython} setup.py nosetests []
whitelist_externals = bash
[testenv:py27-lint]
commands = flake8 {[tox]source_dir} {[tox]test_dir}
skip_install = True
deps =
flake8
flake8-import-order
[testenv:py35-lint]
commands = flake8 {[tox]source_dir} {[tox]test_dir}
skip_install = True
deps =
flake8
flake8-import-order
[testenv:py27-lint-readme]
commands = make lint-readme
skip_install = True
whitelist_externals = make
deps =
readme
[testenv:py27-pytest]
deps =
-r requirements.txt
pytest
docker
commands = pytest -v {[tox]test_dir}
[testenv:py35-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:py27]
deps =
-r requirements.txt
commands = bash {[tox]test_dir}/test.sh
[testenv:py35]
deps =
-r requirements.txt
commands = bash {[tox]test_dir}/test.sh