Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Disable Buildpacks sample tests on the CI temporarily
Browse files Browse the repository at this point in the history
Due to Docker rate limit issue, we will restore them when spring-projects/spring-boot#25898
will be fixed.
  • Loading branch information
sdeleuze committed May 5, 2021
1 parent f987e2c commit 1cfe891
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions build-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,36 @@

RC=0

echo "Testing buildpacks-based builds"
if ! (cd "samples/commandlinerunner" && mvn -ntp spring-boot:build-image); then
RC=1
fi
docker run commandlinerunner:0.0.1-SNAPSHOT&
PID=$!
sleep 3
kill ${PID} > /dev/null 2>&1
if ! (cd "samples/commandlinerunner-gradle" && ./gradlew bootBuildImage); then
RC=1
fi
docker run commandlinerunner-gradle:0.0.1-SNAPSHOT&
PID=$!
sleep 3
kill ${PID} > /dev/null 2>&1
if ! (cd "samples/webmvc-kotlin" && ./gradlew bootBuildImage); then
RC=1
fi
docker run webmvc-kotlin:0.0.1-SNAPSHOT&
PID=$!
sleep 3
kill ${PID} > /dev/null 2>&1
if ! (cd "samples/security-kotlin" && ./gradlew bootBuildImage); then
RC=1
fi
docker run security-kotlin:0.0.1-SNAPSHOT&
PID=$!
sleep 3
kill ${PID} > /dev/null 2>&1
#TODO Disabled due to Docker rate limit issue, to be restored when https://github.com/spring-projects/spring-boot/issues/25898 will be fixed
#echo "Testing buildpacks-based builds"
#if ! (cd "samples/commandlinerunner" && mvn -ntp spring-boot:build-image); then
# RC=1
#fi
#docker run commandlinerunner:0.0.1-SNAPSHOT&
#PID=$!
#sleep 3
#kill ${PID} > /dev/null 2>&1
#if ! (cd "samples/commandlinerunner-gradle" && ./gradlew bootBuildImage); then
# RC=1
#fi
#docker run commandlinerunner-gradle:0.0.1-SNAPSHOT&
#PID=$!
#sleep 3
#kill ${PID} > /dev/null 2>&1
#if ! (cd "samples/webmvc-kotlin" && ./gradlew bootBuildImage); then
# RC=1
#fi
##docker run webmvc-kotlin:0.0.1-SNAPSHOT&
#PID=$!
#sleep 3
#kill ${PID} > /dev/null 2>&1
#if ! (cd "samples/security-kotlin" && ./gradlew bootBuildImage); then
# RC=1
#fi
#docker run security-kotlin:0.0.1-SNAPSHOT&
#PID=$!
#sleep 3
#kill ${PID} > /dev/null 2>&1


echo "GraalVM: `native-image --version`" > samples-summary.csv
Expand Down

0 comments on commit 1cfe891

Please sign in to comment.