summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorMatthew Jones <matburt@redhat.com>2018-09-24 16:53:55 +0200
committerMatthew Jones <matburt@redhat.com>2018-10-05 19:39:59 +0200
commit3a8bacb8efc0b0ffc294f7c8d68f411c0281d2b5 (patch)
treedae0942af1fc1966f3a2897be9c21dbd1c0d05a8 /tox.ini
parentMerge pull request #2375 from ryanpetrello/fix-busted-notifications (diff)
downloadawx-3a8bacb8efc0b0ffc294f7c8d68f411c0281d2b5.tar.xz
awx-3a8bacb8efc0b0ffc294f7c8d68f411c0281d2b5.zip
Add an initial check and gate job configuration for zuul
Updates for running ui tests and linters
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini75
1 files changed, 29 insertions, 46 deletions
diff --git a/tox.ini b/tox.ini
index c24784aa39..583b4afb88 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,73 +5,56 @@ envlist =
ui-lint,
api,
ui,
- coveralls
-[testenv]
-basepython = python2.7
-setenv =
- DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
- SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
- HOME = {homedir}
- USERPROFILE = {homedir}
- ANSIBLE_VENV_PATH = {toxworkdir}
- AWX_VENV_PATH = {toxworkdir}
- SKIP_SLOW_TESTS = True
+; [testenv]
+; basepython = python2.7
+; setenv =
+; DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
+; SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
+; HOME = {homedir}
+; USERPROFILE = {homedir}
+; ANSIBLE_VENV_PATH = {toxworkdir}
+; AWX_VENV_PATH = {toxworkdir}
+; SKIP_SLOW_TESTS = True
[testenv:api-lint]
deps =
- -r{toxinidir}/requirements/requirements.txt
-r{toxinidir}/requirements/requirements_dev.txt
coverage
coveralls
commands =
- make flake8
+ flake8
[testenv:ui-lint]
deps =
nodeenv
commands =
- make jshint
+ make ui-devel
+ npm run --prefix awx/ui jshint
+ npm run --prefix awx/ui lint
[testenv:api]
deps =
- -r{toxinidir}/requirements/requirements.txt
- -r{toxinidir}/requirements/requirements_dev.txt
- ansible
- coverage
- coveralls
+ #-r{toxinidir}/requirements/requirements.txt
+ #-r{toxinidir}/requirements/requirements_git.txt
+ #-r{toxinidir}/requirements/requirements_dev.txt
+ #ansible
+ #coverage
+ #coveralls
+ docker-compose
commands =
- python setup.py develop
+ #python setup.py develop
# coverage run --help
# coverage run -p --source awx/main/tests -m pytest {posargs}
- py.test awx/main/tests awx/conf/tests awx/sso/tests {posargs:-k 'not old'}
+ #py.test -n auto awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
+ #awx-manage check_migrations --dry-run --check -n 'vNNN_missing_migration_file'
+ #make test
+ make docker-compose-build
+ make docker-compose-runtest
[testenv:ui]
deps =
nodeenv
commands =
- make UI_TEST_MODE=CI test-ui
-
-[testenv:ansible]
-deps =
- ansible
- pytest
- -r{toxinidir}/requirements/requirements_ansible.txt
-commands =
- {envdir}/bin/py.test awx/lib/tests/ -c awx/lib/tests/pytest.ini {posargs}
-
-[testenv:coveralls]
-commands=
- coverage combine
- coverage report -m
- coveralls
-
-[pytest]
-DJANGO_SETTINGS_MODULE = awx.settings.development
-python_paths = venv/tower/lib/python2.7/site-packages
-site_dirs = venv/tower/lib/python2.7/site-packages
-python_files = *.py
-addopts = --reuse-db --nomigrations --tb=native
-markers =
- ac: access control test
- license_feature: ensure license features are accessible or not depending on license
+ make ui-devel
+ make ui-test-ci