diff options
author | James Laska <jlaska@redhat.com> | 2016-06-02 17:18:33 +0200 |
---|---|---|
committer | James Laska <jlaska@redhat.com> | 2016-07-22 19:19:57 +0200 |
commit | f3c186310b9dd1dcb5db96254d6d43b05889bd78 (patch) | |
tree | b77a59362dd6caaa60df88778a5430058c207240 /tox.ini | |
parent | Merge branch 'stable' into devel (diff) | |
download | awx-f3c186310b9dd1dcb5db96254d6d43b05889bd78.tar.xz awx-f3c186310b9dd1dcb5db96254d6d43b05889bd78.zip |
First pass at getting tox and travis working
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 72 |
1 files changed, 34 insertions, 38 deletions
@@ -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} |