-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
32 lines (32 loc) · 743 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
language: node_js
node_js:
- '9'
cache:
directories:
- node_modules
sudo: enabled
install:
- npm install
before_deploy:
- if [ "$TRAVIS_BRANCH" = "master" ]; then npm run build:stage; fi
- if [ "$TRAVIS_BRANCH" = "prod" ]; then npm run build:prod; fi
deploy:
- provider: script
skip_cleanup: true
script: bash deploy.sh
local_dir: build
on:
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^master|prod$"
git:
depth: 3
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a72e8b6a596be04dcb83
on_success: always
on_failure: always
before_install:
- openssl aes-256-cbc -K $encrypted_10aae5acea6a_key -iv $encrypted_10aae5acea6a_iv
-in secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar