mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
add awx.conf tests to our various test run environments
This commit is contained in:
4
Makefile
4
Makefile
@@ -473,7 +473,7 @@ pylint: reports
|
|||||||
|
|
||||||
check: flake8 pep8 # pyflakes pylint
|
check: flake8 pep8 # pyflakes pylint
|
||||||
|
|
||||||
TEST_DIRS ?= awx/main/tests
|
TEST_DIRS ?= awx/main/tests awx/conf/tests
|
||||||
# Run all API unit tests.
|
# Run all API unit tests.
|
||||||
test:
|
test:
|
||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
@@ -485,7 +485,7 @@ test_unit:
|
|||||||
@if [ "$(VENV_BASE)" ]; then \
|
@if [ "$(VENV_BASE)" ]; then \
|
||||||
. $(VENV_BASE)/tower/bin/activate; \
|
. $(VENV_BASE)/tower/bin/activate; \
|
||||||
fi; \
|
fi; \
|
||||||
py.test awx/main/tests/unit
|
py.test awx/main/tests/unit awx/conf/tests/unit
|
||||||
|
|
||||||
# Run all API unit tests with coverage enabled.
|
# Run all API unit tests with coverage enabled.
|
||||||
test_coverage:
|
test_coverage:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ services:
|
|||||||
image: gcr.io/ansible-tower-engineering/unit-test-runner:latest
|
image: gcr.io/ansible-tower-engineering/unit-test-runner:latest
|
||||||
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
|
TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests
|
||||||
command: ["make test"]
|
command: ["make test"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../../../:/tower_devel
|
- ../../../:/tower_devel
|
||||||
|
|||||||
Reference in New Issue
Block a user