forked from asciidwango/js-primer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (41 loc) · 1.19 KB
/
.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
sudo: required
addons:
chrome: stable
language: node_js
env:
global:
# gh-pagesへのdeploy向け
- GH_USER_EMAIL="[email protected]"
- GH_USER_NAME="azu"
jobs:
include:
# Unit Tests
- stage: test
node_js: '10'
script: npm run travis
- stage: test
node_js: '8'
script: npm test
# E2E
- stage: e2e
# masterのみ実行
if: branch = master AND type != pull_request
node_js: '10'
script: npm run e2e
# deploy
- stage: deploy
node_js: '10'
if: branch = master AND type != pull_request
before_script:
- |
$(npm bin)/set-up-ssh --key "$encrypted_55887fb399d9_key" \
--iv "$encrypted_55887fb399d9_iv" \
--path-encrypted-key ".travis/github_deploy_key.enc"
script:
- |
npm run install:gitbook
$(npm bin)/update-branch --commands "npm run build" \
--commit-message "Deploy GitBook build [skip ci]" \
--directory "_book" \
--distribution-branch "gh-pages" \
--source-branch "master"