/
.travis.yml
50 lines (46 loc) · 1.04 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
49
50
branches:
only:
- master
- gh_pages
- /^pages-release-.*$/
- /^npm-release-.*$/
language: node_js
node_js:
- "node"
cache:
directories:
- node_modules
- $HOME/.gitbook
jobs:
include:
- stage: Library Testing
script: yarn test
- stage: Github pages release
script: bash scripts/pages-deploy.sh
if: tag =~ ^pages-release-.*$
deploy:
keep-history: true
provider: pages
local-dir: ./integration-example/build
skip_cleanup: true
github-token: $GITHUB_TOKEN
on:
tags: true
- stage: Npm package deploy
script: echo "Npm package deploy" && yarn build
if: tag =~ ^npm-release-.*$
deploy:
provider: npm
email: info@extendi.it
skip_cleanup: true
api_key: $NPM_TOKEN
on:
tags: true
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
notifications:
email:
recipients:
- react-gate@extendi.it
on_success: always
on_failure: always