mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-18 12:52:37 +00:00
Adjust to new shellcheck in ansible-core devel's sanity tests. (#741)
This commit is contained in:
parent
7c61325a83
commit
5256f94342
@ -8,6 +8,7 @@ set -euo pipefail
|
|||||||
[[ -n "${DEBUG:-}" || -n "${ANSIBLE_DEBUG:-}" ]] && set -x
|
[[ -n "${DEBUG:-}" || -n "${ANSIBLE_DEBUG:-}" ]] && set -x
|
||||||
|
|
||||||
readonly IMAGE="quay.io/ansible/ansible-runner:devel"
|
readonly IMAGE="quay.io/ansible/ansible-runner:devel"
|
||||||
|
# shellcheck disable=SC2155
|
||||||
readonly PYTHON="$(command -v python3 python | head -n1)"
|
readonly PYTHON="$(command -v python3 python | head -n1)"
|
||||||
|
|
||||||
# Determine collection root
|
# Determine collection root
|
||||||
@ -18,6 +19,7 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
COLLECTION_ROOT="${COLLECTION_ROOT}../"
|
COLLECTION_ROOT="${COLLECTION_ROOT}../"
|
||||||
done
|
done
|
||||||
|
# shellcheck disable=SC2155
|
||||||
readonly COLLECTION_ROOT="$(cd ${COLLECTION_ROOT} ; pwd)"
|
readonly COLLECTION_ROOT="$(cd ${COLLECTION_ROOT} ; pwd)"
|
||||||
|
|
||||||
# Setup phase
|
# Setup phase
|
||||||
|
|||||||
@ -65,16 +65,7 @@ else
|
|||||||
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
retry pip install "https://github.com/ansible/ansible/archive/stable-${ansible_version}.tar.gz" --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${SHIPPABLE_BUILD_ID:-}" ]; then
|
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${HOME}/.ansible"
|
|
||||||
SHIPPABLE_RESULT_DIR="$(pwd)/shippable"
|
|
||||||
TEST_DIR="${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/docker"
|
|
||||||
mkdir -p "${TEST_DIR}"
|
|
||||||
cp -aT "${SHIPPABLE_BUILD_DIR}" "${TEST_DIR}"
|
|
||||||
cd "${TEST_DIR}"
|
|
||||||
else
|
|
||||||
export ANSIBLE_COLLECTIONS_PATHS="${PWD}/../../../"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${test}" == "sanity/extra" ]; then
|
if [ "${test}" == "sanity/extra" ]; then
|
||||||
retry pip install junit-xml --disable-pip-version-check
|
retry pip install junit-xml --disable-pip-version-check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user