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.
This commit is contained in:
parent
154154dde2
commit
01d4eae984
|
@ -9,7 +9,9 @@ readonly INPUT_DIR=dist/
|
||||||
readonly OUTPUT_FILE=/tmp/snapshot.tar.gz
|
readonly OUTPUT_FILE=/tmp/snapshot.tar.gz
|
||||||
readonly AIO_BUILDS_DOMAIN=ngbuilds.io
|
readonly AIO_BUILDS_DOMAIN=ngbuilds.io
|
||||||
readonly UPLOAD_URL=https://$AIO_BUILDS_DOMAIN/create-build/$TRAVIS_PULL_REQUEST/$TRAVIS_PULL_REQUEST_SHA
|
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 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)
|
readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -P "^(?:aio|packages)/(?!.*[._]spec\.[jt]s$)" | wc -l)
|
||||||
|
|
Loading…
Reference in New Issue