forked from rsuite/rsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
43 lines (35 loc) · 810 Bytes
/
.travis.yml
File metadata and controls
43 lines (35 loc) · 810 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
language: node_js
node_js:
# - 7 # 7 is not supported by NPM, it will fallback to npm@3, which does not run prepublishOnly hook
- 8 # 8 is a LTS version with latest NPM packed
env:
- BROWSER=ChromeCi
- BROWSER=Firefox
cache:
directories:
- node_modules
script:
- npm test
- npm run coveralls
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
on:
branch: master
tags: true
jobs:
include:
- stage: "NPM publish"
script: skip
deploy:
provider: npm
email: "leishenghao@126.com"
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true
stages:
- test
- name: "NPM publish"
if: tag IS present # only include deploy stage when it's a tagged commit