-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (39 loc) · 866 Bytes
/
.travis.yml
File metadata and controls
44 lines (39 loc) · 866 Bytes
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
language: node_js
os: linux
dist: xenial
node_js:
- 10
branches:
only:
- master
- develop
- /^feature.*$/
- /^release.*$/
- /^hotfix.*$/
install:
- npm install
- npm install coveralls
script:
- npm run test:coverage
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- npm run build
- npm run docs:build
deploy:
# https://docs.travis-ci.com/user/deployment/npm/
- provider: npm
email: $NPM_EMAIL
api_token: $NPM_API_KEY
skip_cleanup: true
on:
branch: master
# https://docs.travis-ci.com/user/deployment/pages/
- provider: pages
verbose: true
skip_cleanup: true
strategy: git
local_dir: docs
target_branch: gh-pages
token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
on:
branch: master