mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-13 13:02:21 +00:00
Build collection with 2.10 and ignore things more better
We need 2.10 for building collection tarballs with build_ignore. Also, build_ignore takes globs, not leading filepaths, so add globs to the dirs in our list so that we properly don't include these. Change-Id: I809e100fa80bffafda4002487590a6dcd6aea0c1
This commit is contained in:
@@ -15,13 +15,13 @@ homepage: https://opendev.org
|
|||||||
issues: https://review.opendev.org/q/project:openstack/ansible-collections-openstack
|
issues: https://review.opendev.org/q/project:openstack/ansible-collections-openstack
|
||||||
build_ignore:
|
build_ignore:
|
||||||
- "*.tar.gz"
|
- "*.tar.gz"
|
||||||
- build_artifact/
|
- build_artifact/*
|
||||||
- ci/
|
- ci/*
|
||||||
- galaxy.yml.in
|
- galaxy.yml.in
|
||||||
- setup.cfg
|
- setup.cfg
|
||||||
- test-requirements.txt
|
- test-requirements.txt
|
||||||
- tests/
|
- tests/*
|
||||||
- tools/
|
- tools/*
|
||||||
- tox.ini
|
- tox.ini
|
||||||
- .zuul.yaml
|
- .zuul.yaml
|
||||||
- .pytest_cache
|
- .pytest_cache
|
||||||
|
|||||||
7
tox.ini
7
tox.ini
@@ -27,7 +27,14 @@ commands = stestr run {posargs}
|
|||||||
commands =
|
commands =
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
|
# NOTE(mordred): Until ansible 2.10 is released we need to override deps for this env
|
||||||
|
# here because we need to use 2.10 galaxy to build the collection and properly
|
||||||
|
# respect build_ignore
|
||||||
[testenv:build]
|
[testenv:build]
|
||||||
|
deps =
|
||||||
|
pbr
|
||||||
|
ruamel.yaml
|
||||||
|
git+https://github.com/ansible/ansible
|
||||||
commands =
|
commands =
|
||||||
python {toxinidir}/tools/build.py
|
python {toxinidir}/tools/build.py
|
||||||
ansible-galaxy collection build --force {toxinidir} --output-path {toxinidir}/build_artifact
|
ansible-galaxy collection build --force {toxinidir} --output-path {toxinidir}/build_artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user