@@ -27,18 +27,25 @@ echo ""
27
27
echo " Starting the deployment script. Running mode: ${DEPLOY_MODE} "
28
28
echo " "
29
29
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
44
51
fi
0 commit comments