mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-30 00:33:58 +00:00
(cherry picked from commit 5256f94342)
This commit is contained in:
parent
5e96be6c39
commit
e501ed2c59
@ -5,6 +5,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
|
||||||
@ -15,6 +16,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
|
||||||
|
|||||||
@ -62,16 +62,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