From 01d4eae9842d5c027b9ed90c6e1be8e8108bd9bc Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Fri, 30 Jun 2017 13:29:39 +0300 Subject: [PATCH] ci(aio): use correct URL for preview in PWA score test In 4268c8289, the preview URLs were changed to not use the whole SHA, but just the 7 first characters. --- aio/scripts/deploy-preview.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aio/scripts/deploy-preview.sh b/aio/scripts/deploy-preview.sh index a41ecaec72c7c..2aa6ebc5b3304 100755 --- a/aio/scripts/deploy-preview.sh +++ b/aio/scripts/deploy-preview.sh @@ -9,7 +9,9 @@ readonly INPUT_DIR=dist/ readonly OUTPUT_FILE=/tmp/snapshot.tar.gz readonly AIO_BUILDS_DOMAIN=ngbuilds.io readonly UPLOAD_URL=https://$AIO_BUILDS_DOMAIN/create-build/$TRAVIS_PULL_REQUEST/$TRAVIS_PULL_REQUEST_SHA -readonly DEPLOYED_URL=https://pr$TRAVIS_PULL_REQUEST-$TRAVIS_PULL_REQUEST_SHA.$AIO_BUILDS_DOMAIN + +readonly SHORT_SHA=$(echo $TRAVIS_PULL_REQUEST_SHA | cut -c1-7) +readonly DEPLOYED_URL=https://pr$TRAVIS_PULL_REQUEST-$SHORT_SHA.$AIO_BUILDS_DOMAIN readonly skipBuild=$([[ "$1" == "--skip-build" ]] && echo "true" || echo ""); readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -P "^(?:aio|packages)/(?!.*[._]spec\.[jt]s$)" | wc -l)