2013-06-23 00:27:09 +04:00
[tox]
2016-06-08 22:41:59 +03:00
skipsdist = true
2013-06-23 00:27:09 +04:00
envlist =
2016-06-02 18:18:33 +03:00
api-lint,
ui-lint,
api,
ui,
2018-10-10 16:37:36 +03:00
swagger,
2018-11-19 23:57:20 +03:00
detect-schema-change,
2013-06-23 00:27:09 +04:00
2018-10-01 18:19:48 +03:00
[testenv]
;basepython = python2.7
whitelist_externals = make
2018-09-24 17:53:55 +03:00
; 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
2016-06-08 22:41:59 +03:00
[testenv:api-lint]
2013-06-23 00:27:09 +04:00
deps =
2016-06-02 18:18:33 +03:00
-r{toxinidir}/requirements/requirements_dev.txt
coverage
coveralls
commands =
2018-09-24 17:53:55 +03:00
flake8
2013-06-23 00:27:09 +04:00
2016-06-02 18:18:33 +03:00
[testenv:ui-lint]
2016-06-08 22:41:59 +03:00
deps =
nodeenv
2016-06-02 18:18:33 +03:00
commands =
2018-10-01 18:19:48 +03:00
make clean-ui
2018-09-24 17:53:55 +03:00
make ui-devel
npm run --prefix awx/ui jshint
npm run --prefix awx/ui lint
2013-06-23 00:27:09 +04:00
2016-06-02 18:18:33 +03:00
[testenv:api]
2016-06-08 22:41:59 +03:00
deps =
2018-09-24 17:53:55 +03:00
#-r{toxinidir}/requirements/requirements.txt
#-r{toxinidir}/requirements/requirements_git.txt
#-r{toxinidir}/requirements/requirements_dev.txt
#ansible
#coverage
#coveralls
2018-10-31 17:10:13 +03:00
; https://github.com/docker/compose/issues/6311
docker-compose<1.23.0
2016-06-02 18:18:33 +03:00
commands =
2018-09-24 17:53:55 +03:00
#python setup.py develop
2016-06-08 22:41:59 +03:00
# coverage run --help
# coverage run -p --source awx/main/tests -m pytest {posargs}
2018-09-24 17:53:55 +03:00
#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
2013-11-15 07:55:03 +04:00
2016-06-02 18:18:33 +03:00
[testenv:ui]
2016-06-08 22:41:59 +03:00
deps =
nodeenv
2016-06-02 18:18:33 +03:00
commands =
2018-10-01 18:19:48 +03:00
make clean-ui
2018-09-24 17:53:55 +03:00
make ui-devel
make ui-test-ci
2018-10-10 16:37:36 +03:00
[testenv:swagger]
deps =
nodeenv
commands =
make docker-compose-build
make docker-compose-build-swagger
2018-11-16 00:25:13 +03:00
2018-11-19 23:57:20 +03:00
[testenv:detect-schema-change]
2018-11-16 00:25:13 +03:00
deps =
nodeenv
commands =
make docker-compose-build
2018-11-19 23:57:20 +03:00
make docker-compose-detect-schema-change