summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini72
1 files changed, 34 insertions, 38 deletions
diff --git a/tox.ini b/tox.ini
index ac36195f62..cdbf5ea71f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,50 +1,46 @@
[tox]
envlist =
- py26-dj14, py27-dj14, py26-dj15, py27-dj15, py26-dj16, py27-dj16
+ api-lint,
+ ui-lint,
+ api,
+ ui,
+ coveralls
[testenv]
-commands = python manage.py test main
-deps =
- ansible==1.3.4
- python-ldap
+basepython = python2.7
setenv =
- DJANGO_SETTINGS_MODULE = awx.settings.development
+ DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
# For OS X to be able to install pycrypto.
- CFLAGS=-I/opt/local/include
-downloadcache = {toxworkdir}/cache
-
-[testenv:py26-dj14]
-basepython = python2.6
+ CFLAGS = -I/opt/local/include
+ HOME = {homedir}
+ USERPROFILE = {homedir}
deps =
- Django==1.4.10
- {[testenv]deps}
+ -r{toxinidir}/requirements/requirements.txt
+ -r{toxinidir}/requirements/requirements_dev.txt
+ coverage
+ coveralls
+ nodeenv
-[testenv:py27-dj14]
-basepython = python2.7
-deps =
- Django==1.4.10
- {[testenv]deps}
+[testenv:api-lint]
+commands =
+ make flake8
+ coverage erase
-[testenv:py26-dj15]
-basepython = python2.6
-deps =
- Django==1.5.5
- {[testenv]deps}
+[testenv:ui-lint]
+commands =
+ make jshint
-[testenv:py27-dj15]
-basepython = python2.7
-deps =
- Django==1.5.5
- {[testenv]deps}
+[testenv:api]
+commands =
+ coverage run --parallel -m pytest --create-db --source awx/main/tests {posargs}
-[testenv:py26-dj16]
-basepython = python2.6
-deps =
- Django==1.6
- {[testenv]deps}
+[testenv:ui]
+commands =
+ make UI_TEST_MODE=CI test-ui
+
+[testenv:coveralls]
+commands=
+ coverage combine
+ coverage report -m
+ coveralls
-[testenv:py27-dj16]
-basepython = python2.7
-deps =
- Django==1.6
- {[testenv]deps}