forked from IvanWei/passport-line-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (39 loc) · 829 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
language: node_js
sudo: false
node_js:
- "6"
- "8"
- "10"
before_install:
# - openssl aes-256-cbc -K $encrypted_f91801d319b3_key -iv $encrypted_f91801d319b3_iv
# -in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
# - chmod 600 ~/.ssh/id_rsa
# - eval $(ssh-agent)
# - ssh-add ~/.ssh/id_rsa
# - cp .travis/ssh_config ~/.ssh/config
- npm install -g yarn
install:
- yarn install
script:
- npm run coverage
jobs:
include:
- stage: "codecov"
name: "Update Codecov"
node_js: "8"
sudo: required
script:
- npm run coverage
after_success:
- npm run codecov
- if: branch = master
stage: "deploy"
name: "Deploy to npm package"
node_js: "8"
script:
- echo 'test'
stages:
- test
- codecov
- name: deploy
if: branch = master