forked from jondot/hygen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (46 loc) · 1.8 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
43
44
45
46
47
48
language: node_js
cache: yarn
node_js:
- "10"
- node
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
# run install twice. flaky npm behavior
# https://github.com/GitbookIO/gitbook/issues/1834
script: yarn test
jobs:
include:
- stage: npm
node_js: "10"
if: tag =~ ^v\d.*
deploy:
provider: npm
script: yarn build
email: "[email protected]"
api_key:
secure: p34hE6/SsJqd8DrtEnRd+RP9fQwSMa+4q/qOTPlJSWIE08rgdt+vZ2gvUtVBaQWUjgL1lYt1OWPiPDBpVKsPYHfGPfxGrW5Q341y97nONqxn0qtLfxduEjFSW0q2ywav3Pz/vSP14g1MCty07Df066J1tRuJVx75FoIuzD8L3GeHApOL/LAYH++jA5l6BMZCF+tn3xNdUPwZB3v7LbsOSnXv8q/zXua3MqYJdB63NWs6/0meRymf9jj3LgjbLjuAhap7MtF+WJ+WCUePZvg24bhSdMhnXItMrPEXkqmWtVQNGsNSc1T/P2Wzo8EEoD5VHw0LHDDFl4Pt/BkGdgzx9YUjYyN60hFnfhFc7HrwlpOQ6zY+8tzERhYoScaBrzzVIXnBjeWuRGYrbMmSsYNhKvkbRc1lShOXDFoCiTPTQlI/xMijnn5uRcxjSgVeeCUdNjI9SkXEJ8OfPM/oKhWYXImcrI4eAE0lD+MLBAI428ip4xQUzgFlpaUu1LL+AcyyEIgLg9FyJtHwD8M4vKs9BwFOuyW2aEU5vmdXrQkL3MhOi3+m203dzgI4ZcbqYuBw9m1bP4AB1KV4yqxmAthnZ2pLwag2KQm4V9jO6aEOBtxV1keoeLvNV0fGh9wKgdEKC6jmHqW2e2sCc2v8kh3VmJlK+Q4tBlwQ5IJPVecbYyw=
on:
tags: true
skip_cleanup: true
- stage: docs
script: yarn docs:prepare && yarn docs:build
node_js: "10"
deploy:
provider: pages
local-dir: hygen.io/public
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
- stage: binary releases
script: yarn standalone
if: tag =~ ^v\d.*
node_js: "10"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: standalone/*
skip_cleanup: true
on:
tags: true