build: fix build; missing firebase-tools

This commit is contained in:
Misko Hevery 2017-08-24 12:49:58 -07:00
parent 1c2f3d47e9
commit 3d2ee6c3fe
7 changed files with 6583 additions and 7 deletions

View File

@ -96,8 +96,8 @@ fi
yarn payload-size
# Deploy to Firebase
firebase use "$projectId" --token "$firebaseToken"
firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
$PROJECT_ROOT/node_modules/.bin/firebase use "$projectId" --token "$firebaseToken"
$PROJECT_ROOT/node_modules/.bin/firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$firebaseToken"
# Run PWA-score tests
yarn test-pwa-score -- "$deployedUrl" "$MIN_PWA_SCORE"

View File

@ -21,7 +21,7 @@ else
cd $INTEGRATION_DIR
rm -rf $PROJECT
$NG set --global packageManager=yarn
$NG new $PROJECT --skip-install
$NG new $PROJECT --skip-install --skip-git
echo "==================="
echo $PROJECT created
echo "==================="

File diff suppressed because it is too large Load Diff

4052
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -57,6 +57,7 @@
"dgeni": "^0.4.2",
"dgeni-packages": "^0.16.5",
"entities": "^1.1.1",
"firebase-tools": "^3.9.2",
"firefox-profile": "^0.3.4",
"fs-extra": "^0.26.3",
"glob": "^4.0.6",

View File

@ -39,7 +39,10 @@ addTimestamp() {
# Write travis commit message to global variable $payloadData
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')
payloadData="$payloadData\"message\": \"$message\""
}
@ -85,7 +88,7 @@ uploadData() {
# WARNING: FIREBASE_TOKEN should NOT be printed.
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
}

View File

@ -89,7 +89,7 @@ function publishRepo {
git config user.name "${COMMITTER_USER_NAME}" && \
git config user.email "${COMMITTER_USER_EMAIL}" && \
git add --all && \
git commit -m "${COMMIT_MSG}" && \
git commit -m "${COMMIT_MSG}" --quiet && \
git tag "${BUILD_VER}" && \
git push origin "${BRANCH}" --tags --force
)
@ -101,7 +101,7 @@ function publishPackages {
PKGS_DIST=$2
BRANCH=$3
for dir in $PKGS_DIST/*/
for dir in $PKGS_DIST/*/
do
COMPONENT="$(basename ${dir})"