mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
test that CI works for version checking
This commit is contained in:
2
Makefile
2
Makefile
@@ -362,11 +362,11 @@ TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/ss
|
|||||||
|
|
||||||
# Run all API unit tests.
|
# Run all API unit tests.
|
||||||
test:
|
test:
|
||||||
cmp VERSION awxkit/VERSION || "`cat VERSION` != `cat awxkit/VERSION`; these version files *must* match"
|
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/awx/bin/activate; \
|
. $(VENV_BASE)/awx/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
PYTHONDONTWRITEBYTECODE=1 py.test -p no:cacheprovider -n auto $(TEST_DIRS)
|
PYTHONDONTWRITEBYTECODE=1 py.test -p no:cacheprovider -n auto $(TEST_DIRS)
|
||||||
|
cmp VERSION awxkit/VERSION || "VERSION and awxkit/VERSION *must* match"
|
||||||
cd awxkit && $(VENV_BASE)/awx/bin/tox -re py2,py3
|
cd awxkit && $(VENV_BASE)/awx/bin/tox -re py2,py3
|
||||||
awx-manage check_migrations --dry-run --check -n 'vNNN_missing_migration_file'
|
awx-manage check_migrations --dry-run --check -n 'vNNN_missing_migration_file'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user