Skip to content

Commit

Permalink
Travis with firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Godoy committed Jul 7, 2017
1 parent 71d29dd commit 87d96ae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "enegrecer-e37b3"
}
}
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ cache: yarn
node_js: '7'
jobs:
include:
- stage: lint
- stage: lint
script:
- yarn lint
- stage: node_js unit tests
script: yarn test
- yarn lint
- stage: unit tests
script: yarn test
- stage: deploy
before_script: yarn build
deploy:
provider: firebase
skip_cleanup: true
on:
branch: firebase_travis_tests
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "./build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}

0 comments on commit 87d96ae

Please sign in to comment.