-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (52 loc) · 1.25 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
51
52
53
jobs:
include:
- stage: test
name: 'Unit Tests'
language: node_js
if: type IN (pull_request, push) AND branch = develop
node_js:
- 14
- 13
- 12
- 11
- 10
install:
- npm i
script:
- npm run test
cache:
directories:
- 'node_modules'
notifications:
email: false
- stage: build and deploy
name: 'Build and deploy(on push)'
language: node_js
if: type IN (pull_request, push) AND branch = master
node_js: 12
install:
- npm i
script:
- npm run test:cov
- npm run build
cache:
directories:
- 'node_modules'
notifications:
email: false
deploy:
- provider: pages
skip-cleanup: true
local_dir: coverage/lcov-report
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
repo: nanogiants/nano-nodegen
keep-history: true
target-branch: gh-pages
on:
type: push
- provider: npm
email: 'r.heinen@nanogiants.de'
api_key: $NPM_TOKEN
skip_cleanup: true
on:
type: push