-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (24 loc) · 856 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
sudo: false
language: node_js
node_js:
- "10"
jobs:
include:
- stage: build
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
- export PATH="$HOME/.yarn/bin:$PATH"
script: yarn install && yarn build
- stage: deploy
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
- export PATH="$HOME/.yarn/bin:$PATH"
- openssl aes-256-cbc -K $encrypted_7c7c680ab1be_key -iv $encrypted_7c7c680ab1be_iv -in .travis/deploy_key.enc -out .travis/deploy_key -d
install:
- sh ./.travis/config_ssh.sh
script: yarn install && yarn build --prod=true && sh ./.travis/deploy.sh
stages:
- name: deploy
if: type = push AND branch = master
- name: build
if: type = pull_request AND branch = master