Skip to content

Commit 4124d77

Browse files
novemberbornsindresorhus
authored andcommitted
Update npm, test Node.js 9, detect package-lock churn in CI (#1601)
* Use [email protected] in CI * Detect package-lock.json churn during CI * Add Node.js 9 to CI matrix * Used npx to run codecov
1 parent e401bd1 commit 4124d77

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
coverage
44
bench/.results
55
types/generated.d.ts
6+
/package-lock.json.md5

.travis.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- 9
34
- 8
45
- 6
56
- 4
@@ -8,6 +9,8 @@ env:
89
- FRESH_DEPS=true
910
matrix:
1011
exclude:
12+
- node_js: 9
13+
env: FRESH_DEPS=true
1114
- node_js: 6
1215
env: FRESH_DEPS=true
1316
- node_js: 4
@@ -16,8 +19,17 @@ cache:
1619
directories:
1720
- $HOME/.npm
1821
before_install:
19-
- npm install --global npm@5.4.2
22+
- npm install --global npm@5.6.0
2023
- npm --version
21-
install:
22-
- if [[ ${FRESH_DEPS} == "true" ]]; then npm install --no-shrinkwrap --prefer-online; else npm install --prefer-offline; fi
23-
after_success: ./node_modules/.bin/codecov --file=./coverage/lcov.info
24+
- md5sum package-lock.json > package-lock.json.md5
25+
install: |
26+
if [[ ${FRESH_DEPS} == "true" ]]; then
27+
npm install --no-shrinkwrap --prefer-online;
28+
else
29+
npm install --prefer-offline;
30+
if ! md5sum --quiet -c package-lock.json.md5; then
31+
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes.";
32+
exit 1;
33+
fi
34+
fi
35+
after_success: npx codecov --file=./coverage/lcov.info

appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ configuration:
1111
- LockedDeps
1212
environment:
1313
matrix:
14+
- nodejs_version: 9
1415
- nodejs_version: 8
1516
- nodejs_version: 6
1617
- nodejs_version: 4
1718
matrix:
1819
fast_finish: true
1920
exclude:
21+
- configuration: FreshDeps
22+
nodejs_version: 9
2023
- configuration: FreshDeps
2124
nodejs_version: 6
2225
- configuration: FreshDeps
2326
nodejs_version: 4
2427
install:
2528
- ps: Install-Product node $env:nodejs_version
26-
- npm install --global npm@5.4.2
29+
- npm install --global npm@5.6.0
2730
- npm --version
2831
- git config core.symlinks true
2932
- git reset --hard

contributing.md

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ You may find an issue is assigned, or has the [`assigned` label](https://github.
4040

4141
We'd like to fix [`priority` issues](https://github.com/avajs/ava/labels/priority) first. We'd love to see progress on [`low-priority` issues](https://github.com/avajs/ava/labels/low%20priority) too. [`future` issues](https://github.com/avajs/ava/labels/future) are those that we'd like to get to, but not anytime soon. Please check before working on these since we may not yet want to take on the burden of supporting those features.
4242

43+
If you're updating dependencies, please make sure you use [email protected] and commit the updated `package-lock.json` file.
44+
4345
### Hang out in our chat
4446

4547
We have a [chat](https://gitter.im/avajs/ava). Jump in there and lurk, talk to us, and help others.

0 commit comments

Comments
 (0)