Skip to content

Commit

Permalink
ci(aio): use correct URL for preview in PWA score test
Browse files Browse the repository at this point in the history
In 4268c82, the preview URLs were changed to not use the whole SHA, but just
the 7 first characters.
  • Loading branch information
gkalpak authored and petebacondarwin committed Jun 30, 2017
1 parent 154154d commit 01d4eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aio/scripts/deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01d4eae

Please sign in to comment.