mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 07:57:29 -02:30
Merge pull request #1381 from AlanCoding/test_docker
Run ansible tests separately
This commit is contained in:
4
Makefile
4
Makefile
@@ -369,12 +369,14 @@ check: flake8 pep8 # pyflakes pylint
|
|||||||
|
|
||||||
TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
|
TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests
|
||||||
# Run all API unit tests.
|
# Run all API unit tests.
|
||||||
test: test_ansible
|
test:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/awx/bin/activate; \
|
. $(VENV_BASE)/awx/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
py.test $(TEST_DIRS)
|
py.test $(TEST_DIRS)
|
||||||
|
|
||||||
|
test_combined: test_ansible test
|
||||||
|
|
||||||
test_unit:
|
test_unit:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/awx/bin/activate; \
|
. $(VENV_BASE)/awx/bin/activate; \
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl"
|
SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl"
|
||||||
TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests
|
TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests
|
||||||
command: ["make test"]
|
command: ["make test_combined"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../../../:/awx_devel
|
- ../../../:/awx_devel
|
||||||
|
|||||||
Reference in New Issue
Block a user