tox.ini 1.04 KB
Newer Older
1
[tox]
Thom Wiggers's avatar
Thom Wiggers committed
2
envlist = flake8, {py35,py36}-django11, {py35,py36}-django20
3
skipsdist = True
Thom Wiggers's avatar
Thom Wiggers committed
4
skip_missing_interpreters = True
5
6
7
8

[testenv]
changedir={toxinidir}/website
commands =
9
10
    ; Copy the env list to make not conflict with the Django version
    ; specified below
Thom Wiggers's avatar
Thom Wiggers committed
11
12
13
    cp {toxinidir}/requirements.txt {envbindir}/reqtemp.txt
    sed -i /Django>=.*/d {envbindir}/reqtemp.txt
    pip install -r{envbindir}/reqtemp.txt
14
    pipconflictchecker  # if this fails, use pipdeptree to debug
15
    python manage.py check
16
    python manage.py templatecheck --project-only
Thom Wiggers's avatar
Thom Wiggers committed
17
    python manage.py makemigrations --no-input --check --dry-run
Thom Wiggers's avatar
Thom Wiggers committed
18
    python -Wall -mcoverage run --branch --source '.' manage.py test
Wietse Kuipers's avatar
Wietse Kuipers committed
19
deps = 
Thom Wiggers's avatar
Thom Wiggers committed
20
    coverage
21
    pip-conflict-checker
Thom Wiggers's avatar
Thom Wiggers committed
22
    django11: django>=1.11b1,<1.12
Thom Wiggers's avatar
Thom Wiggers committed
23
    django20: django>=2.0rc1,<2.1
Wietse Kuipers's avatar
Wietse Kuipers committed
24
25
    {env:CI_DEPS:}

Thom Wiggers's avatar
Thom Wiggers committed
26
27
28
passenv =
    GITLAB_CI
    PIP_CACHE_DIR
Thom Wiggers's avatar
Thom Wiggers committed
29
30
31
whitelist_externals=
    sed
    cp
32
33

[flake8]
Thom Wiggers's avatar
Thom Wiggers committed
34
exclude = */migrations/*, */urls.py, .ropeproject
35
36

[testenv:flake8]
Thom Wiggers's avatar
Thom Wiggers committed
37
deps= flake8
38
39
40
skip_install=True
commands=
    flake8 .
Thom Wiggers's avatar
Thom Wiggers committed
41
42
passenv =
    PIP_CACHE_DIR