mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 03:46:55 +00:00
CI: Run some tests with the latest development versions of Docker SDK for Python, requests, and urllib3 (#902)
* Run some tests with the latest development versions of Docker SDK for Python, requests, and urllib3. * Use LooseVersion instead of StrictVersion to parse urllib3 versions.
This commit is contained in:
@@ -17,6 +17,15 @@ else
|
||||
target="azp/"
|
||||
fi
|
||||
|
||||
if [[ "${python}" =~ -pypi-latest$ ]]; then
|
||||
python="${python/-pypi-latest}"
|
||||
echo 'force_docker_sdk_for_python_pypi: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
if [[ "${python}" =~ -dev-latest$ ]]; then
|
||||
python="${python/-dev-latest}"
|
||||
echo 'force_docker_sdk_for_python_dev: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
||||
--docker "quay.io/ansible-community/test-image:${image}" --python "${python}"
|
||||
|
||||
@@ -16,6 +16,15 @@ else
|
||||
target="azp/"
|
||||
fi
|
||||
|
||||
if [[ "${image}" =~ -pypi-latest$ ]]; then
|
||||
image="${image/-pypi-latest}"
|
||||
echo 'force_docker_sdk_for_python_pypi: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
if [[ "${image}" =~ -dev-latest$ ]]; then
|
||||
image="${image/-dev-latest}"
|
||||
echo 'force_docker_sdk_for_python_dev: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
||||
--docker "${image}"
|
||||
|
||||
@@ -27,10 +27,13 @@ else
|
||||
target="azp/"
|
||||
fi
|
||||
|
||||
force_python=""
|
||||
if [[ "${version}" =~ -pypi-latest$ ]]; then
|
||||
version="${version/-pypi-latest}"
|
||||
echo 'force_docker_sdk_for_python_pypi: true' >> tests/integration/interation_config.yml
|
||||
echo 'force_docker_sdk_for_python_pypi: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
if [[ "${version}" =~ -dev-latest$ ]]; then
|
||||
version="${version/-dev-latest}"
|
||||
echo 'force_docker_sdk_for_python_dev: true' >> tests/integration/integration_config.yml
|
||||
fi
|
||||
|
||||
stage="${S:-prod}"
|
||||
@@ -42,4 +45,4 @@ fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
|
||||
--python "${pyver}" --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}" ${force_python}
|
||||
--python "${pyver}" --remote "${platform}/${version}" --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
|
||||
|
||||
Reference in New Issue
Block a user