-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
50 lines (43 loc) · 1.11 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
44
45
46
47
48
49
50
; NOTE :
; --parallel option is available only since Django 1.9
[tox]
minversion = 2.3
envlist =
tests
coverage
linting
skipsdist = true
[testenv]
changedir=src/
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
whitelist_externals = /bin/sh
setenv =
DJANGO_SETTINGS_MODULE=project.settings.test
COVERAGE_FILE={envdir}/coverage_report
POSTGRES_USER={env:POSTGRES_USER:user}
POSTGRES_PASSWORD={env:POSTGRES_PASSWORD:password}
POSTGRES_DB={env:POSTGRES_DB:db}
POSTGRES_HOST={env:POSTGRES_HOST:db}
PROJECT_DIR={env:PROJECT_DIR:project/}
PROJECT_PACKAGE={env:PROJECT_PACKAGE:project}
[testenv:tests]
commands =
coverage erase
python manage.py test --parallel --noinput
python manage.py test --reverse --parallel --noinput
[testenv:coverage]
commands =
coverage erase
sh -c 'coverage run --source=. manage.py test --noinput'
coverage report
[testenv:linting]
commands =
pylama -o ../tox.ini
isort -c -rc --quiet
[pylama]
skip = */migrations/*,*/settings/*,*/populate_*
ignore = W0401
[pylama:pycodestyle]
max_line_length = 120