Skip to content

Commit a5b0a8d

Browse files
iarnazkat
authored andcommitted
travis: Adjust tests to pass with NYC under travis
Credit: @iarna PR-URL: npm#14400 Reviewed-By: @zkat
1 parent 0c122f2 commit a5b0a8d

File tree

9 files changed

+4831
-16
lines changed

9 files changed

+4831
-16
lines changed

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ html/*.png
3030
/test/tap/builtin-config
3131

3232
.nyc_output
33+
34+
npm-shrinkwrap.json

.travis.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ matrix:
1111
# DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
1212
# only gather coverage info for LTS
1313
env: DEPLOY_VERSION=testing COVERALLS_REPO_TOKEN="$COVERALLS_OPTIONAL_TOKEN"
14+
script:
15+
- "node . run tap-cover -- \"test/tap/*.js\""
16+
- "unset COVERALLS_REPO_TOKEN ; node . run tap -- \"test/slow/*.js\" \"test/broken-under-travis-and-nyc/*.js\""
1417
# next LTS and master is next most important
1518
- node_js: "6"
1619
env: DEPLOY_VERSION=testing
@@ -24,8 +27,28 @@ matrix:
2427
- node_js: "0.12"
2528
env: DEPLOY_VERSION=testing
2629
before_install:
27-
- "node . install -g ."
2830
# required by test/tap/registry.js
2931
- "mkdir -p /var/run/couchdb"
3032
notifications:
3133
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
34+
cache:
35+
directories:
36+
- $HOME/.npm
37+
- node_modules/.bin
38+
- node_modules/deep-equal
39+
- node_modules/marked
40+
- node_modules/marked-man
41+
- node_modules/npm-registry-couchapp
42+
- node_modules/npm-registry-mock
43+
- node_modules/require-inject
44+
- node_modules/sprintf-js
45+
- node_modules/standard
46+
- node_modules/tacks
47+
- node_modules/tap
48+
install:
49+
- "node . prune"
50+
- "node . rebuild --depth=0"
51+
- "node . install --ignore-scripts"
52+
- "make -j4 doc"
53+
script:
54+
- "node . run tap -- \"test/tap/*.js\" \"test/slow/*.js\" \"test/broken-under-travis-and-nyc/*.js\""

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ install:
2626
test_script:
2727
- node --version
2828
- npm --version
29-
- npm test
29+
- npm run test -- --reporter=classic
3030
notifications:
3131
- provider: Slack
3232
incoming_webhook:

0 commit comments

Comments
 (0)