-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 808 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
27
28
29
30
31
32
33
34
35
language: node_js
node_js:
- 9
- 8
- 6
- 4
env:
- FRESH_DEPS=false
- FRESH_DEPS=true
matrix:
exclude:
- node_js: 9
env: FRESH_DEPS=true
- node_js: 6
env: FRESH_DEPS=true
- node_js: 4
env: FRESH_DEPS=true
cache:
directories:
- $HOME/.npm
before_install:
- npm install --global [email protected]
- npm --version
- md5sum package-lock.json > package-lock.json.md5
install: |
if [[ ${FRESH_DEPS} == "true" ]]; then
npm install --no-shrinkwrap --prefer-online;
else
npm install --prefer-offline;
if ! md5sum --quiet -c package-lock.json.md5; then
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes.";
exit 1;
fi
fi
after_success: npx codecov --file=./coverage/lcov.info