Skip to content
Merged
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
4 changes: 3 additions & 1 deletion tools/gulp/task_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ export function openFirebaseDatabase() {
credential: firebaseAdmin.credential.cert({
project_id: 'material2-dashboard',
client_email: 'firebase-adminsdk-ch1ob@material2-dashboard.iam.gserviceaccount.com',
private_key: process.env['MATERIAL2_FIREBASE_PRIVATE_KEY']
// In Travis CI the private key will be incorrect because the line-breaks are escaped.
// The line-breaks need to persist in the service account private key.
private_key: (process.env['MATERIAL2_FIREBASE_PRIVATE_KEY'] || '').replace(/\\n/g, '\n')
}),
databaseURL: 'https://material2-dashboard.firebaseio.com'
});
Expand Down