-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d10279
commit 09d5654
Showing
2 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,28 @@ cache: | |
directories: | ||
- node_modules | ||
before_install: | ||
# Skip updating shrinkwrap / lock | ||
- "npm config set shrinkwrap false" | ||
|
||
# Configure npm | ||
- | | ||
# Skip updating shrinkwrap / lock | ||
npm config set shrinkwrap false | ||
# Remove all non-test dependencies | ||
- "npm rm --save-dev connect-redis" | ||
|
||
- | | ||
# Remove example dependencies | ||
npm rm --silent --save-dev connect-redis | ||
# Update Node.js modules | ||
- "test ! -d node_modules || npm prune" | ||
- "test ! -d node_modules || npm rebuild" | ||
- | | ||
# Prune and rebuild node_modules | ||
if [[ -d node_modules ]]; then | ||
npm prune | ||
npm rebuild | ||
fi | ||
script: | ||
- "npm run test-ci" | ||
- "npm run lint" | ||
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls" | ||
# Run test script | ||
- npm run test-ci | ||
# Run linting | ||
- npm run lint | ||
after_script: | ||
- | | ||
# Upload coverage to coveralls | ||
npm install --save-dev [email protected] | ||
coveralls < ./coverage/lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters