mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Run linters in a temp dir instead of an install
We can't run linters in an install because installs expand symlinks to regular files so the ansible-test code that detects symlinks can't work so it looks at docs for symlink aliases as if they were real. Change-Id: I0a5659a1f693261a21a5b29528f950b846205f2e
This commit is contained in:
committed by
Sagi Shnaidman
parent
7e027cb532
commit
6271268567
3
tox.ini
3
tox.ini
@@ -37,8 +37,7 @@ passenv = *
|
||||
commands =
|
||||
{[testenv:build]commands}
|
||||
{[testenv:pep8]commands}
|
||||
/bin/bash -c "ansible-galaxy collection install $(ls {toxinidir}/build_artifact/openstack-cloud-*) --force"
|
||||
/bin/bash -c "cd ~/.ansible/collections/ansible_collections/openstack/cloud && ansible-test sanity --skip-test metaclass-boilerplate --skip-test future-import-boilerplate"
|
||||
/bin/bash {toxinidir}/tools/run-ansible-sanity.sh {toxinidir}
|
||||
|
||||
[testenv:venv]
|
||||
deps =
|
||||
|
||||
Reference in New Issue
Block a user