-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (27 loc) · 1.09 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
# https://docs.travis-ci.com/user/customizing-the-build/
language: node_js
# Be aware of https://github.com/nodejs/LTS when choosing versions to test
# Update engines.node in package.json if removing old versions.
node_js:
- node
- 10
# If the package has OS-dependent features, uncomment this.
#os:
# - linux
# - osx
# Note: semantic-release caches node_modules and `npm prune` in before_script
# https://github.com/semantic-release/semantic-release/blob/v6.2.0/.travis.yml#L3
# Since cache is stored in S3 and npm repository is a caching proxy, why bother?
install:
# Ignore package-lock.json. This is done for a few reasons:
# - To test against current versions of dependencies.
# - To test installability for dependents (doesn't use package-lock.json).
- rm -f package-lock.json
- npm install
script:
- npm run test-ci-cov
# Note: Both codecov and coveralls detect branch/PR info from Travis CI
# https://github.com/codecov/codecov-node/blob/v1.0.1/lib/services/travis.js
# https://github.com/nickmerwin/node-coveralls/blob/2.11.5/lib/getOptions.js#L18
after_success:
- npm run upload-cov