Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(docs.angularjs.org): install firebase dependencies before deploying #16453

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ build steps.
Creates a server at localhost:5000 that serves from deploy/docs and uses the local function

See /scripts/code.angularjs.org-firebase/readme.firebase.code.md for the firebase deployment to
code.angularjs.org
code.angularjs.org
13 changes: 12 additions & 1 deletion scripts/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -e

readonly THIS_DIR=$(cd $(dirname $0); pwd)
readonly ROOT_DIR="$THIS_DIR/../.."

export BROWSER_STACK_ACCESS_KEY
export SAUCE_ACCESS_KEY

Expand Down Expand Up @@ -80,6 +83,14 @@ case "$JOB" in

if [[ "$DEPLOY_DOCS" == true || "$DEPLOY_CODE" == true ]]; then
grunt prepareDeploy

if [[ "$DEPLOY_DOCS" == true ]]; then
# Install npm dependencies for Firebase functions.
(
cd "$ROOT_DIR/scripts/docs.angularjs.org-firebase/functions"
npm install
)
fi
else
echo "Skipping deployment build because conditions have not been met."
fi
Expand All @@ -94,4 +105,4 @@ case "$JOB" in
or\
'deploy'."
;;
esac
esac