chore: remove screenshot testing (#12155)

Removes the screenshot test tool since Angular Material is visually being tested inside of Google.
This commit is contained in:
Paul Gschwendtner
2018-07-11 17:24:21 +02:00
committed by Jeremy Elbourn
parent dc0732bc2c
commit afb0ee37eb
70 changed files with 3 additions and 12924 deletions
+1 -3
View File
@@ -19,9 +19,7 @@ echo ""
echo "Starting the deployment script. Running mode: ${DEPLOY_MODE}"
echo ""
if [[ "${DEPLOY_MODE}" == "screenshot-tool" ]]; then
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-screenshot-tool.sh
elif [[ "${DEPLOY_MODE}" == "dashboard" ]]; then
if [[ "${DEPLOY_MODE}" == "dashboard" ]]; then
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/deploy-dashboard.sh
elif [[ "${DEPLOY_MODE}" == "build-artifacts" ]]; then
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-build-artifacts.sh
-41
View File
@@ -1,41 +0,0 @@
#!/bin/bash
# The script should immediately exit if any command in the script fails.
set -e
# This script deploys the Screenshot Tool and their Cloud Functions to Firebase.
# Before deploying, the script installs all dependencies of the functions and builds the app.
# Go to the project root directory
cd $(dirname ${0})/../..
if [ -z ${MATERIAL2_SCREENSHOT_FIREBASE_DEPLOY_TOKEN} ]; then
echo "Error: No access token for firebase specified." \
"Please set the environment variable 'MATERIAL2_SCREENSHOT_FIREBASE_DEPLOY_TOKEN'."
exit 1
fi
# Path to the screenshot tool in the project.
screenshotToolFolder="tools/screenshot-test"
# Path to the firebase binary of the root package.json
firebaseBin=$(npm bin)/firebase
# Go to the screenshot-test folder because otherwise Firebase tries to deploy the wrong project.
cd ${screenshotToolFolder}
# Install node_modules for the application and afterwards build the application in production.
(npm install; $(npm bin)/ng build --aot -prod) &
# Install node modules for screenshot-tool functions. Firebase CLI needs to execute the functions
# to collect all function names before it can deploy them.
(cd functions; npm install) &
# The screenshot application is being built asynchronously. Also the dependencies for the
# Cloud Functions are built asynchronously. This means that the script needs to wait for all
# async tasks to finish before proceeding.
wait
# Deploy the screenshot application and their functions to Firebase
${firebaseBin} deploy --token ${MATERIAL2_SCREENSHOT_FIREBASE_DEPLOY_TOKEN} --non-interactive \
--project material2-screenshots