-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (38 loc) · 1022 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
dist: trusty
sudo: false
language: node_js
node_js:
- 6.11.5 # runtime used within Firebase functions
notifications:
email:
on_failure: change
on_success: change
branches:
only:
- master
- stage
- prod
cache:
# TODO: Use npm once functions runtime is updated to a node verion with lock files
yarn: true
directories:
- node_modules # NPM packages
install:
# TODO: Use npm again functions runtime is updated to a node verion with lock files
- yarn install
- npm install -g codecov
- npm i -g firebase-ci # install firebase-ci for use in creating config and deploying
script:
- firebase-ci createConfig # create env specific src/config.js
- npm run lint
- npm run test
- codecov
- npm run build
addons:
code_climate:
repo_token: $CODE_CLIMATE
code_cover:
repo_token: $CODECOV_TOKEN
after_success:
- npm i -g firebase-ci@latest # install firebase-ci tool
- firebase-ci deploy -s # deploy without CI actions since createConfig is called earlier