-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 844 Bytes
/
.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
# 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