blob: 39596025b0df948589ddd0b9a9c74d2f49f5df4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
[tox]
skipsdist = true
envlist =
api-lint,
ui-lint,
api,
ui,
swagger,
detect-schema-change,
[testenv]
;basepython = python2.7
whitelist_externals = make
; 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]
basepython = python3.6
deps =
-r{toxinidir}/requirements/requirements_dev.txt
coverage
coveralls
commands =
flake8
[testenv:ui-lint]
deps =
nodeenv
commands =
make clean-ui
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_git.txt
#-r{toxinidir}/requirements/requirements_dev.txt
#ansible
#coverage
#coveralls
; https://github.com/docker/compose/issues/6311
docker-compose<1.23.0
commands =
#python setup.py develop
# coverage run --help
# coverage run -p --source awx/main/tests -m pytest {posargs}
#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 clean-ui
make ui-devel
make ui-test-ci
[testenv:swagger]
deps =
nodeenv
commands =
make docker-compose-build
make docker-compose-build-swagger
[testenv:detect-schema-change]
deps =
nodeenv
commands =
make docker-compose-build
make docker-compose-detect-schema-change
|