File tree 2 files changed +18
-14
lines changed
2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ matrix:
11
11
env : TOXENV=py36-dj20-postgres
12
12
- python : 3.6
13
13
env : TOXENV=py36-dj111-sqlite
14
- - python : 3.6
15
- env : TOXENV=py36-checkqa
16
14
17
15
- python : 3.5
18
16
env : TOXENV=py35-dj110-postgres
@@ -26,15 +24,16 @@ matrix:
26
24
env : TOXENV=py27-dj111-mysql_myisam
27
25
- python : 2.7
28
26
env : TOXENV=py27-dj18-postgres
29
- - python : 2.7
30
- env : TOXENV=py27-checkqa
31
27
32
28
# pypy/pypy3: not included with coverage reports (much slower then).
33
29
- python : pypy
34
30
env : TOXENV=pypy-dj111-sqlite_file
35
31
- python : pypy3
36
32
env : TOXENV=pypy3-dj110-sqlite
37
33
34
+ - python : 3.6
35
+ env : TOXENV=checkqa
36
+
38
37
allow_failures :
39
38
- env : TOXENV=py36-djmaster-postgres
40
39
@@ -53,7 +52,7 @@ install:
53
52
- pip install tox==2.9.1
54
53
- |
55
54
# Setup coverage tracking, but not with "checkqa" nor "pypy*".
56
- if [[ "${ TOXENV%-checkqa}" == "$TOXENV " ]] && [[ "${TOXENV#pypy}" == "$TOXENV" ]]; then
55
+ if [[ "$TOXENV" != "checkqa " ]] && [[ "${TOXENV#pypy}" == "$TOXENV" ]]; then
57
56
PYTEST_DJANGO_COVERAGE=1
58
57
export PYTEST_ADDOPTS='--cov=pytest_django --cov=tests --cov=pytest_django_test --cov-report=term-missing:skip-covered'
59
58
export _PYTESTDJANGO_TOX_EXTRA_DEPS=pytest-cov
Original file line number Diff line number Diff line change 13
13
pytest-xdist ==1.15
14
14
{env:_PYTESTDJANGO_TOX_EXTRA_DEPS:}
15
15
16
- checkqa: flake8
17
-
18
16
djmaster: https://github.com/django/django/archive/master.tar.gz
19
17
dj20: Django>=2.0a1,<2.1
20
18
dj111: Django>=1.11,<1.12
@@ -34,16 +32,23 @@ setenv =
34
32
COV_CORE_CONFIG ={toxinidir}/.coveragerc
35
33
COV_CORE_DATAFILE ={toxinidir}/.coverage.eager
36
34
35
+ mysql_innodb: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_mysql_innodb
36
+ mysql_myisam: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_mysql_myisam
37
+ postgres: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_postgres
38
+ sqlite: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_sqlite
39
+ sqlite_file: DJANGO_SETTINGS_MODULE =pytest_django_test.settings_sqlite_file
40
+
37
41
passenv = PYTEST_ADDOPTS
38
42
usedevelop = True
39
43
commands =
40
- checkqa: flake8 --version
41
- checkqa: flake8 --show-source --statistics {posargs:pytest_django pytest_django_test}
42
- mysql_innodb: pytest --ds =pytest_django_test.settings_mysql_innodb --strict {posargs:tests}
43
- mysql_myisam: pytest --ds =pytest_django_test.settings_mysql_myisam --strict {posargs:tests}
44
- postgres: pytest --ds =pytest_django_test.settings_postgres --strict {posargs:tests}
45
- sqlite: pytest --ds =pytest_django_test.settings_sqlite --strict {posargs:tests}
46
- sqlite_file: pytest --ds =pytest_django_test.settings_sqlite_file --strict {posargs:tests}
44
+ pytest --strict {posargs:tests}
45
+
46
+ [testenv:checkqa]
47
+ deps =
48
+ flake8
49
+ commands =
50
+ flake8 --version
51
+ flake8 --show-source --statistics {posargs:pytest_django pytest_django_test}
47
52
48
53
[testenv:doc8]
49
54
basepython = python3.6
You can’t perform that action at this time.
0 commit comments