automatically tests all Mayan apps that report to have tests. Change the app flag that indicates when an app has test from 'test' to the more explicit 'has_test'. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
44 lines
908 B
INI
44 lines
908 B
INI
[tox]
|
|
envlist =
|
|
coverage-clean
|
|
py{27,33,34,35}-django{1.8,1.9}
|
|
coverage-report
|
|
|
|
[testenv]
|
|
basepython =
|
|
py27: python2.7
|
|
py33: python3.3
|
|
py34: python3.4
|
|
py35: python3.5
|
|
|
|
commands=
|
|
coverage run {envdir}/bin/django-admin.py test --mayan-apps --settings=mayan.settings.testing --nomigrations
|
|
|
|
deps =
|
|
-rrequirements/testing-no-django.txt
|
|
django1.8: django>=1.8,<1.9
|
|
django1.9: django>=1.9,<1.10
|
|
|
|
setenv=
|
|
COVERAGE_FILE=.coverage.tox.{envname}
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
skipsdist=True
|
|
usedevelop=True
|
|
|
|
[testenv:coverage-clean]
|
|
basepython = python2.7
|
|
setenv =
|
|
COVERAGE_FILE=.coverage.tox
|
|
commands =
|
|
-python {envbindir}/coverage combine
|
|
-python {envbindir}/coverage erase
|
|
|
|
[testenv:coverage-report]
|
|
basepython = python2.7
|
|
setenv =
|
|
COVERAGE_FILE=.coverage.tox
|
|
commands =
|
|
-python {envbindir}/coverage combine
|
|
-python {envbindir}/coverage html
|