diff options
author | Rebecca Turner <me@re-becca.org> | 2016-10-25 00:29:36 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-10-25 02:18:29 +0300 |
commit | a5b0a8db561916086fc7dbd6eb2836c952a42a7e (patch) | |
tree | 7b0b400a944073f6a7a24cf2fffba9811f693643 /.travis.yml | |
parent | 0c122f24ff1d4d400975edda2b7262aaaf6f7d69 (diff) |
travis: Adjust tests to pass with NYC under travis
Credit: @iarna
PR-URL: https://github.com/npm/npm/pull/14400
Reviewed-By: @zkat
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 988ee7e30..6b5990850 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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\"" |