forked from APIDevTools/swagger-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (54 loc) · 1.31 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
60
61
62
63
64
65
# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
- 10
- 8
- 6
os:
- linux
- osx
- windows
before_script:
- npm run lint
script:
- npm run coverage:node
after_success:
# concatenate all code-coverage data into a single file
- ls -R1 coverage/*/lcov.info
- cat coverage/*/lcov.info > ./coverage/lcov.info
# send code-coverage data to Coveralls
- cat ./coverage/lcov.info | coveralls
jobs:
include:
- name: Browser tests (Linux)
os: linux
script: npm run coverage:browser
addons:
firefox: latest
chrome: stable
- name: Browser tests (Mac)
os: osx
script: npm run coverage:browser
addons:
firefox: latest
chrome: stable
- name: Browser tests (Windows via SauceLabs)
os: linux
script: npm run coverage:browser
env: WINDOWS=true
- stage: Deploy
name: Publish to npm
script: npm run build
after_success: true
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
skip_cleanup: true
on:
tags: true
branch: master