build: fix build; missing firebase-tools
This commit is contained in:
parent
1c2f3d47e9
commit
3d2ee6c3fe
|
@ -96,8 +96,8 @@ fi
|
||||||
yarn payload-size
|
yarn payload-size
|
||||||
|
|
||||||
# Deploy to Firebase
|
# Deploy to Firebase
|
||||||
firebase use "$projectId" --token "$firebaseToken"
|
$PROJECT_ROOT/node_modules/.bin/firebase use "$projectId" --token "$firebaseToken"
|
||||||
firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
|
$PROJECT_ROOT/node_modules/.bin/firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
|
||||||
|
|
||||||
# Run PWA-score tests
|
# Run PWA-score tests
|
||||||
yarn test-pwa-score -- "$deployedUrl" "$MIN_PWA_SCORE"
|
yarn test-pwa-score -- "$deployedUrl" "$MIN_PWA_SCORE"
|
||||||
|
|
|
@ -21,7 +21,7 @@ else
|
||||||
cd $INTEGRATION_DIR
|
cd $INTEGRATION_DIR
|
||||||
rm -rf $PROJECT
|
rm -rf $PROJECT
|
||||||
$NG set --global packageManager=yarn
|
$NG set --global packageManager=yarn
|
||||||
$NG new $PROJECT --skip-install
|
$NG new $PROJECT --skip-install --skip-git
|
||||||
echo "==================="
|
echo "==================="
|
||||||
echo $PROJECT created
|
echo $PROJECT created
|
||||||
echo "==================="
|
echo "==================="
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -57,6 +57,7 @@
|
||||||
"dgeni": "^0.4.2",
|
"dgeni": "^0.4.2",
|
||||||
"dgeni-packages": "^0.16.5",
|
"dgeni-packages": "^0.16.5",
|
||||||
"entities": "^1.1.1",
|
"entities": "^1.1.1",
|
||||||
|
"firebase-tools": "^3.9.2",
|
||||||
"firefox-profile": "^0.3.4",
|
"firefox-profile": "^0.3.4",
|
||||||
"fs-extra": "^0.26.3",
|
"fs-extra": "^0.26.3",
|
||||||
"glob": "^4.0.6",
|
"glob": "^4.0.6",
|
||||||
|
|
|
@ -39,7 +39,10 @@ addTimestamp() {
|
||||||
|
|
||||||
# Write travis commit message to global variable $payloadData
|
# Write travis commit message to global variable $payloadData
|
||||||
addMessage() {
|
addMessage() {
|
||||||
message=$(git log --oneline $TRAVIS_COMMIT_RANGE)
|
# Grab the set of SHAs for the message. This can fail when you force push or do initial build
|
||||||
|
# because $TRAVIS_COMMIT_RANGE will contain the previous SHA which will not be in the
|
||||||
|
# force push or commit, hence we default to last commit.
|
||||||
|
message=$(git log --oneline $TRAVIS_COMMIT_RANGE -- || git log --oneline -n1)
|
||||||
message=$(echo $message | sed 's/"/\\"/g' | sed 's/\\/\\\\/g')
|
message=$(echo $message | sed 's/"/\\"/g' | sed 's/\\/\\\\/g')
|
||||||
payloadData="$payloadData\"message\": \"$message\""
|
payloadData="$payloadData\"message\": \"$message\""
|
||||||
}
|
}
|
||||||
|
@ -85,7 +88,7 @@ uploadData() {
|
||||||
|
|
||||||
# WARNING: FIREBASE_TOKEN should NOT be printed.
|
# WARNING: FIREBASE_TOKEN should NOT be printed.
|
||||||
set +x
|
set +x
|
||||||
firebase database:update --data "$payloadData" --project $PROJECT_NAME --confirm --token "$ANGULAR_PAYLOAD_FIREBASE_TOKEN" $dbPath
|
$PROJECT_ROOT/node_modules/.bin/firebase database:update --data "$payloadData" --project $PROJECT_NAME --confirm --token "$ANGULAR_PAYLOAD_FIREBASE_TOKEN" $dbPath
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ function publishRepo {
|
||||||
git config user.name "${COMMITTER_USER_NAME}" && \
|
git config user.name "${COMMITTER_USER_NAME}" && \
|
||||||
git config user.email "${COMMITTER_USER_EMAIL}" && \
|
git config user.email "${COMMITTER_USER_EMAIL}" && \
|
||||||
git add --all && \
|
git add --all && \
|
||||||
git commit -m "${COMMIT_MSG}" && \
|
git commit -m "${COMMIT_MSG}" --quiet && \
|
||||||
git tag "${BUILD_VER}" && \
|
git tag "${BUILD_VER}" && \
|
||||||
git push origin "${BRANCH}" --tags --force
|
git push origin "${BRANCH}" --tags --force
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue