UNPKG

1.56 kBYAMLView Raw
1sudo: false
2# need to declare the language as well as the matrix below
3language: node_js
4# having top-level `env:` adds a phantom build
5# https://github.com/travis-ci/travis-ci/issues/4681
6#env: DEPLOY_VERSION=testing
7matrix:
8 include:
9 # LTS is our most important target
10 - node_js: "6"
11 # DEPLOY_VERSION is used to set the couchapp setup mode for test/tap/registry.js
12 # only gather coverage info for LTS
13 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/broken-under-*/*.js\""
17 # previous LTS is next most important
18 - node_js: "4"
19 env: DEPLOY_VERSION=testing
20 # then master
21 - node_js: "7"
22 env: DEPLOY_VERSION=testing
23before_install:
24 # required by test/tap/registry.js
25 - "mkdir -p /var/run/couchdb"
26notifications:
27 slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
28cache:
29 directories:
30 - $HOME/.npm
31 - html/doc
32 - man
33 - node_modules/.bin
34 - node_modules/.cache
35 - node_modules/deep-equal
36 - node_modules/marked
37 - node_modules/marked-man
38 - node_modules/npm-registry-couchapp
39 - node_modules/npm-registry-mock
40 - node_modules/require-inject
41 - node_modules/sprintf-js
42 - node_modules/standard
43 - node_modules/tacks
44 - node_modules/tap
45install:
46 - "node . rebuild --depth=0"
47 - "node . install --ignore-scripts"
48 - "node . prune"
49 - "make -j4 doc"
50script:
51 - "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""