CI: Try docker-compose pull several times

This commit is contained in:
nicolas.dorier 2022-06-29 23:37:38 +09:00
parent 23a1a8e3f5
commit d90cc02e5a
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -4,6 +4,15 @@ set -e
cd ../BTCPayServer.Tests cd ../BTCPayServer.Tests
docker-compose -v docker-compose -v
docker-compose -f "docker-compose.altcoins.yml" down --v docker-compose -f "docker-compose.altcoins.yml" down --v
docker-compose -f "docker-compose.altcoins.yml" pull
# For some reason, docker-compose pull fails time to time, so we try several times
n=0
until [ "$n" -ge 10 ]
do
docker-compose -f "docker-compose.altcoins.yml" pull && break
n=$((n+1))
sleep 5
done
docker-compose -f "docker-compose.altcoins.yml" build docker-compose -f "docker-compose.altcoins.yml" build
docker-compose -f "docker-compose.altcoins.yml" run -e "TEST_FILTERS=$1" tests docker-compose -f "docker-compose.altcoins.yml" run -e "TEST_FILTERS=$1" tests