-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
59 lines (50 loc) · 1.06 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
54
55
56
57
58
59
language: node_js
os:
- linux
dist: xenial
node_js:
- "10"
- "12"
install:
- npm install --registry=https://registry.npmjs.org
- npm install -g codecov --registry=https://registry.npmjs.org
- npm run test:install
stages:
- test
- name: releaseNpm
if: branch = master
- name: ghPages
if: branch = master
jobs:
include:
- stage: test
name: "Run test scripts"
node_js: "14"
script:
- npm run test
- codecov
- stage: releaseNpm
name: "Release npm package"
node_js: "14"
script: echo "Release npm package..."
deploy:
provider: npm
email: [email protected]
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
branch: master
- stage: ghPages
name: "Deploying to github pages"
node_js: "14"
script:
- npm run pg:build
deploy:
provider: pages
github_token: $GITHUB_TOKEN
skip_cleanup: true
local_dir: playground/dist
on:
branch: master
notifications:
email: false