diff --git a/.zuul.yaml b/.zuul.yaml index 940c2cef..5c13cef5 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -185,26 +185,44 @@ dependencies: &deps_unit_lint - tox-pep8 - openstack-tox-linters-ansible-2.9 + irrelevant-files: &ignore_files + - changelogs/.* + - COPYING + - docs/.* + - README.md + - tools/run-ansible-sanity.sh + - tests/sanity/.* + - ansible-collections-openstack-functional-devstack-releases: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-ansible-devel: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-ansible-2.9: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-train-ansible-devel: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-train-ansible-2.9: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-stein-ansible-devel: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-stein-ansible-2.9: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-rocky-ansible-devel: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-rocky-ansible-2.9: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files - ansible-collections-openstack-functional-devstack-queens-ansible-2.9: dependencies: *deps_unit_lint + irrelevant-files: *ignore_files gate: @@ -217,4 +235,5 @@ - ansible-collections-openstack-functional-devstack-train-ansible-2.9 - ansible-collections-openstack-functional-devstack-stein-ansible-2.9 - ansible-collections-openstack-functional-devstack-rocky-ansible-2.9 + - ansible-collections-openstack-functional-devstack-queens-ansible-2.9 diff --git a/galaxy.yml.in b/galaxy.yml.in index 9daae8c9..45542d3e 100644 --- a/galaxy.yml.in +++ b/galaxy.yml.in @@ -21,5 +21,7 @@ build_ignore: - setup.cfg - test-requirements.txt - tests/ + - tools/ - tox.ini - - zuul.yaml + - .zuul.yaml + - .pytest_cache diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt index abef8575..e69de29b 100644 --- a/tests/sanity/ignore-2.10.txt +++ b/tests/sanity/ignore-2.10.txt @@ -1,18 +0,0 @@ -plugins/module_utils/openstack.py future-import-boilerplate -plugins/module_utils/openstack.py metaclass-boilerplate -plugins/doc_fragments/openstack.py future-import-boilerplate -plugins/doc_fragments/openstack.py metaclass-boilerplate -scripts/inventory/openstack_inventory.py future-import-boilerplate -scripts/inventory/openstack_inventory.py metaclass-boilerplate -tests/unit/mock/path.py future-import-boilerplate -tests/unit/mock/path.py metaclass-boilerplate -tests/unit/mock/yaml_helper.py future-import-boilerplate -tests/unit/mock/yaml_helper.py metaclass-boilerplate -tests/unit/modules/cloud/openstack/test_server.py future-import-boilerplate -tests/unit/modules/cloud/openstack/test_server.py metaclass-boilerplate -tests/unit/modules/conftest.py future-import-boilerplate -tests/unit/modules/conftest.py metaclass-boilerplate -tests/unit/modules/utils.py future-import-boilerplate -tests/unit/modules/utils.py metaclass-boilerplate -tools/groups-to-routing.py compile-2.7!skip -tools/groups-to-routing.py compile-3.5!skip diff --git a/tests/sanity/ignore-2.9.txt b/tests/sanity/ignore-2.9.txt index abef8575..e69de29b 100644 --- a/tests/sanity/ignore-2.9.txt +++ b/tests/sanity/ignore-2.9.txt @@ -1,18 +0,0 @@ -plugins/module_utils/openstack.py future-import-boilerplate -plugins/module_utils/openstack.py metaclass-boilerplate -plugins/doc_fragments/openstack.py future-import-boilerplate -plugins/doc_fragments/openstack.py metaclass-boilerplate -scripts/inventory/openstack_inventory.py future-import-boilerplate -scripts/inventory/openstack_inventory.py metaclass-boilerplate -tests/unit/mock/path.py future-import-boilerplate -tests/unit/mock/path.py metaclass-boilerplate -tests/unit/mock/yaml_helper.py future-import-boilerplate -tests/unit/mock/yaml_helper.py metaclass-boilerplate -tests/unit/modules/cloud/openstack/test_server.py future-import-boilerplate -tests/unit/modules/cloud/openstack/test_server.py metaclass-boilerplate -tests/unit/modules/conftest.py future-import-boilerplate -tests/unit/modules/conftest.py metaclass-boilerplate -tests/unit/modules/utils.py future-import-boilerplate -tests/unit/modules/utils.py metaclass-boilerplate -tools/groups-to-routing.py compile-2.7!skip -tools/groups-to-routing.py compile-3.5!skip diff --git a/tools/run-ansible-sanity.sh b/tools/run-ansible-sanity.sh index c4357528..91646dae 100644 --- a/tools/run-ansible-sanity.sh +++ b/tools/run-ansible-sanity.sh @@ -21,6 +21,9 @@ trap "rm -rf ${ANSIBLE_COLLECTIONS_PATH}" err exit rm -rf "${ANSIBLE_COLLECTIONS_PATH}" mkdir -p ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud -cp -a ${TOXDIR}/{plugins,meta,galaxy.yml} ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud +cp -a ${TOXDIR}/{plugins,meta,scripts,tests,docs} ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud cd ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/openstack/cloud/ -ansible-test sanity --skip-test metaclass-boilerplate --skip-test future-import-boilerplate +ansible-test sanity -v \ + --skip-test metaclass-boilerplate \ + --skip-test future-import-boilerplate \ + plugins/ docs/ meta/ scripts/ tests/