Skip to content

Commit b4b1780

Browse files
committed
added firebase deploy for examples
1 parent 98c96f5 commit b4b1780

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "javascript-ds-algorithms-book"
4+
}
5+
}

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
language: node_js
22
node_js:
33
- node
4+
before_script:
5+
- npm install -g --silent firebase-tools
46
install:
57
- npm install
68
script:
79
- npm run go
810
after_success:
911
- npm run coverage
12+
- test $TRAVIS_BRANCH = "master" && firebase deploy --token $FIREBASE_TOKEN --non-interactive
1013
notifications:
1114
email:
1215
on_failure: change

firebase.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"hosting": {
3+
"public": "examples",
4+
"rewrites": [
5+
{
6+
"source": "**",
7+
"destination": "/index.html"
8+
}
9+
]
10+
}
11+
}

0 commit comments

Comments
 (0)