Disable db tests on publish

This commit is contained in:
Erik Wilson 2020-01-20 19:34:01 -07:00
parent 3b13338952
commit c110f17df4
2 changed files with 8 additions and 3 deletions

View File

@ -19,7 +19,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
ENV TEST_CLEANUP true
ENV DAPPER_RUN_ARGS --privileged --network host
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME GCLOUD_AUTH
ENV DAPPER_ENV REPO TAG DRONE_TAG DRONE_SYSTEM_HOST IMAGE_NAME GCLOUD_AUTH
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_OUTPUT ./dist
ENV DAPPER_DOCKER_SOCKET true

View File

@ -17,9 +17,14 @@ E2E_OUTPUT=$artifacts test-run-sonobuoy
# ---
if [[ "$DRONE_SYSTEM_HOST" =~ 'publish' ]]; then
printf "\033[33mSkipping remaining tests on publish.\033[m\n"
exit 0
fi
if [ "$ARCH" != 'amd64' ]; then
printf "\033[33mSkipping remaining tests, images not available for $ARCH.\033[m\n"
exit 0
printf "\033[33mSkipping remaining tests, images not available for $ARCH.\033[m\n"
exit 0
fi
# ---