mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-06-26 15:55:29 +00:00
Improve AZP nox scripts. (#1289)
This commit is contained in:
parent
b6d3ed1c82
commit
0a81e84087
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
set -o pipefail -eux
|
set -o pipefail -eux
|
||||||
|
|
||||||
|
# Fix for https://github.com/ansible-community/antsibull-nox/issues/222#issuecomment-4778928615
|
||||||
|
# caused by https://github.com/ansible/azure-pipelines-test-container/blob/7714d81f64f268bbb10779e1265d312128607b76/Containerfile#L4
|
||||||
|
export PATH="${PATH//:~\//:${HOME}/}"
|
||||||
|
|
||||||
nox_session="$1"
|
nox_session="$1"
|
||||||
|
|
||||||
docker images ansible/ansible
|
docker images ansible/ansible
|
||||||
@ -47,6 +51,8 @@ export FORCE_COLOR=1
|
|||||||
export ANTSIBULL_NOX_IGNORE_INSTALLED_COLLECTIONS="true"
|
export ANTSIBULL_NOX_IGNORE_INSTALLED_COLLECTIONS="true"
|
||||||
|
|
||||||
if [ "${nox_session}" == "extra-sanity-tests" ]; then
|
if [ "${nox_session}" == "extra-sanity-tests" ]; then
|
||||||
|
# We need the ansible-galaxy CLI tool to install collection dependencies
|
||||||
|
retry pip install ansible-core --disable-pip-version-check
|
||||||
nox --verbose --install-only
|
nox --verbose --install-only
|
||||||
else
|
else
|
||||||
nox --verbose --install-only -e "${nox_session}"
|
nox --verbose --install-only -e "${nox_session}"
|
||||||
|
|||||||
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
set -o pipefail -eux
|
set -o pipefail -eux
|
||||||
|
|
||||||
|
# Fix for https://github.com/ansible-community/antsibull-nox/issues/222#issuecomment-4778928615
|
||||||
|
# caused by https://github.com/ansible/azure-pipelines-test-container/blob/7714d81f64f268bbb10779e1265d312128607b76/Containerfile#L4
|
||||||
|
export PATH="${PATH//:~\//:${HOME}/}"
|
||||||
|
|
||||||
nox_session="$1"
|
nox_session="$1"
|
||||||
|
|
||||||
export PYTHONIOENCODING='utf-8'
|
export PYTHONIOENCODING='utf-8'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user