-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
28 lines (28 loc) · 947 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
language: node_js
node_js:
- "node"
install:
- npm install
- cd functions/ && npm install && cd ..
before_script:
- npm run lint
- if [ "$TRAVIS_TAG" ]; then sed -i 's/corpopong-dev/corpopong/g' ./src/corpopong-app/corpopong-app.html; fi
- if [ "$TRAVIS_TAG" ]; then sed -i 's/corpopong-dev/corpopong/g' ./src/common/api-ajax.html; fi
- if [ "$TRAVIS_TAG" ]; then sed -i 's/AIzaSyB1jdeJaOejjpVtL5SOQrkiARsmAdeyuOk/AIzaSyDbtyN2aekFdVcqWP-YbclBHkwknQOrk6U/' ./src/corpopong-app/corpopong-app.html; fi
- if [ "$TRAVIS_TAG" ]; then sed -i 's/414017409980/182128657968/' ./src/corpopong-app/corpopong-app.html; fi
- npm run autoprefixer
script:
- npm run build
deploy:
- provider: firebase
project: "corpopong-dev"
skip_cleanup: true
on:
condition: "-z $TRAVIS_TAG"
all_branches: true
- provider: firebase
project: "corpopong"
skip_cleanup: true
on:
tags: true
all_branches: true