Skip to content

Commit 94584db

Browse files
devversionandrewseguin
authored andcommitted
build: deploy dashboard, screenshot-tool in cronjob (#7618)
* No longer deploy the dashboard and screenshot-tool per commit.
1 parent 2d72ac9 commit 94584db

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

scripts/ci/travis-deploy.sh

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,25 @@ echo ""
2727
echo "Starting the deployment script. Running mode: ${DEPLOY_MODE}"
2828
echo ""
2929

30-
if [[ "${DEPLOY_MODE}" == "build-artifacts" ]]; then
31-
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-build-artifacts.sh
32-
fi
33-
34-
if [[ "${DEPLOY_MODE}" == "docs-content" ]]; then
35-
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-docs-content.sh
36-
fi
37-
38-
if [[ "${DEPLOY_MODE}" == "screenshot-tool" ]]; then
39-
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-screenshot-tool.sh
40-
fi
41-
42-
if [[ "${DEPLOY_MODE}" == "dashboard" ]]; then
43-
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-dashboard.sh
30+
# Deployment of the screenshot tool or dashboard should happen inside of a Cronjob.
31+
# For example, always deploying the screenshot functions on a per-commit base might cause problems
32+
# with the screenshot tests, because the functions can be non-responsive for a few seconds.
33+
if [[ "${TRAVIS_EVENT_TYPE}" == "cron" ]]; then
34+
if [[ "${DEPLOY_MODE}" == "screenshot-tool" ]]; then
35+
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-screenshot-tool.sh
36+
fi
37+
38+
if [[ "${DEPLOY_MODE}" == "dashboard" ]]; then
39+
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-dashboard.sh
40+
fi
41+
# Deployment of the build artifacts and docs-content should only happen on a per-commit base.
42+
# The target is to provide build artifacts in the GitHub repository for every commit.
43+
else
44+
if [[ "${DEPLOY_MODE}" == "build-artifacts" ]]; then
45+
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-build-artifacts.sh
46+
fi
47+
48+
if [[ "${DEPLOY_MODE}" == "docs-content" ]]; then
49+
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-docs-content.sh
50+
fi
4451
fi

0 commit comments

Comments
 (0)