Skip to content

Commit

Permalink
travis: Adjust tests to pass with NYC under travis
Browse files Browse the repository at this point in the history
Credit: @iarna
PR-URL: npm/npm#14400
Reviewed-By: @zkat
  • Loading branch information
iarna authored and zkat committed Oct 24, 2016
1 parent 0c122f2 commit a5b0a8d
Show file tree
Hide file tree
Showing 9 changed files with 4,831 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ html/*.png
/test/tap/builtin-config

.nyc_output

npm-shrinkwrap.json
25 changes: 24 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ matrix:
# DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
# only gather coverage info for LTS
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
script:
- "node . run tap-cover -- \"test/tap/*.js\""
- "unset COVERALLS_REPO_TOKEN ; node . run tap -- \"test/slow/*.js\" \"test/broken-under-travis-and-nyc/*.js\""
# next LTS and master is next most important
- node_js: "6"
env: DEPLOY_VERSION=testing
Expand All @@ -24,8 +27,28 @@ matrix:
- node_js: "0.12"
env: DEPLOY_VERSION=testing
before_install:
- "node . install -g ."
# required by test/tap/registry.js
- "mkdir -p /var/run/couchdb"
notifications:
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
cache:
directories:
- $HOME/.npm
- node_modules/.bin
- node_modules/deep-equal
- node_modules/marked
- node_modules/marked-man
- node_modules/npm-registry-couchapp
- node_modules/npm-registry-mock
- node_modules/require-inject
- node_modules/sprintf-js
- node_modules/standard
- node_modules/tacks
- node_modules/tap
install:
- "node . prune"
- "node . rebuild --depth=0"
- "node . install --ignore-scripts"
- "make -j4 doc"
script:
- "node . run tap -- \"test/tap/*.js\" \"test/slow/*.js\" \"test/broken-under-travis-and-nyc/*.js\""
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
test_script:
- node --version
- npm --version
- npm test
- npm run test -- --reporter=classic
notifications:
- provider: Slack
incoming_webhook:
Expand Down
Loading

0 comments on commit a5b0a8d

Please sign in to comment.