mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-15 11:53:31 +00:00
Try to make connection test work with coverage (#39)
* Try to make connection test work with coverage. ci_coverage * Don't run test inside containers. ci_coverage * Empty commit to run without coverage.
This commit is contained in:
parent
219c6b3a85
commit
65ab240e2b
@ -1,2 +1,3 @@
|
||||
shippable/posix/group4
|
||||
skip/docker # coverage does not work if we're inside a docker container, since we cannot access this container's /tmp dir from the new container
|
||||
destructive
|
||||
|
||||
@ -37,8 +37,12 @@ trap cleanup INT TERM EXIT
|
||||
|
||||
echo "Start containers"
|
||||
for CONTAINER in ${DOCKER_CONTAINERS}; do
|
||||
docker run --rm --name ${CONTAINER} --detach ${IMAGE} /bin/sh -c 'sleep 10m'
|
||||
docker exec ${CONTAINER} pip3 install coverage
|
||||
if [ "${ANSIBLE_TEST_COVERAGE}" == "" ]; then
|
||||
docker run --rm --name ${CONTAINER} --detach ${IMAGE} /bin/sh -c 'sleep 10m'
|
||||
else
|
||||
docker run --rm --name ${CONTAINER} --detach -v /tmp:/tmp ${IMAGE} /bin/sh -c 'sleep 10m'
|
||||
docker exec ${CONTAINER} pip3 install coverage
|
||||
fi
|
||||
echo ${CONTAINER}
|
||||
done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user