Skip to content

Commit

Permalink
Support configuring galaxy-importer (#1583)
Browse files Browse the repository at this point in the history
Support configuring galaxy-importer

Because galaxy-importer tests the collections in a sterile environment it can't read the shared amazon.aws fragments.
We're separately testing the docs more thoroughly using a github action, so we should be able to disable the broken docs fragment testing via galaxy-importer

Reviewed-by: Mark Chappell <None>
  • Loading branch information
tremble authored Jun 28, 2022
1 parent be9d213 commit dc19f38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion playbooks/ansible-galaxy-importer/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
include_vars:
file: '{{ _fetch.dest }}'
name: galaxy_info

- name: Confirm collection can be imported into galaxy
args:
chdir: "~/{{ zuul.projects['github.com/ansible-network/releases'].src_dir }}"
shell: "source .tox/venv/bin/activate; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz"
shell: "source .tox/venv/bin/activate ; ./tools/validate-collection.sh ~/downloads/{{ galaxy_info.namespace}}-{{ galaxy_info.name }}-*.tar.gz"
environment:
GALAXY_IMPORTER_CONFIG: "/home/zuul/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg"
# It would be better to use ~, but it's not being expanded
# GALAXY_IMPORTER_CONFIG: "~/{{ zuul.project.src_dir }}/tests/galaxy-importer.cfg"

0 comments on commit dc19f38

Please sign in to comment.