build: deploy screenshot functions (#4698)

* build: deploy screenshot functions

* Deploys the screenshot functions for push builds
* Runs deploying & publishing in parallel

* Fix comment about parallel
This commit is contained in:
Paul Gschwendtner
2017-05-22 23:58:32 +02:00
committed by tinayuangao
parent eecf8976d6
commit ecea23c684
5 changed files with 45 additions and 8 deletions
+16 -3
View File
@@ -9,6 +9,19 @@ cd $(dirname $0)/../..
# If not running as a PR, wait for all other travis modes to finish.
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && $(npm bin)/travis-after-modes; then
echo "All travis modes passed. Publishing the build artifacts..."
./scripts/release/publish-build-artifacts.sh
./scripts/release/publish-docs-content.sh
fi
echo ""
# Build Material, CDK and the docs before publishing artifacts
$(npm bin)/gulp material:build-release:clean
$(npm bin)/gulp material-examples:build-release
$(npm bin)/gulp docs
# Run publishing of artifacts in parallel. This is possible because the output has been built before.
./scripts/release/publish-build-artifacts.sh --no-build &
./scripts/release/publish-docs-content.sh --no-build &
# Deploy the screenshot functions for each push build.
./scripts/release/deploy-screenshot-functions.sh &
wait
#fi