forked from openlearninginitiative/xblock-submit-and-compare
-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
48 lines (41 loc) · 986 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
43
44
45
46
47
48
[tox]
downloadcache = {toxworkdir}/_download/
envlist = py27-dj18,coverage,pep8,pylint
[testenv]
commands = {envpython} manage.py test
[testenv:py27-dj18]
deps =
-rrequirements.txt
[testenv:pep8]
deps =
-rrequirements.txt
pep8
commands = {envbindir}/pep8 submit_and_compare/
[testenv:pylint]
deps =
-rrequirements.txt
pylint
commands = {envbindir}/pylint submit_and_compare/
# Note: Coverage appears lower than it actually is.
# For a detailed explanation of why this is the case, see:
# https://docs.python.org/devguide/coverage.html#common-gotchas
[testenv:coverage]
deps =
-rrequirements.txt
coverage
setenv =
NOSE_COVER_TESTS=1
NOSE_WITH_COVERAGE=1
commands =
{envpython} manage.py test --cover-xml
[testenv:coveralls]
deps =
-rrequirements.txt
coveralls
setenv =
NOSE_COVER_TESTS=1
NOSE_WITH_COVERAGE=1
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
{envpython} manage.py test
{envbindir}/coveralls