summaryrefslogtreecommitdiff
path: root/deps/npm/.travis.yml
blob: 07bae65e6640fc9da6dce68e540017cf2f6f92a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
sudo: false
# need to declare the language as well as the matrix below
language: node_js
# having top-level `env:` adds a phantom build
# https://github.com/travis-ci/travis-ci/issues/4681
#env: DEPLOY_VERSION=testing
matrix:
  include:
    # LTS is our most important target
    - node_js: "12"
      # 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/broken-under-*/*.js\""
    # previous LTS is next most important
    - node_js: "10"
      env: DEPLOY_VERSION=testing
      script:
      - "npx standard"
      - "node . run licenses"
      - "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
    - node_js: "8"
      env: DEPLOY_VERSION=testing
    - node_js: "6"
      env: DEPLOY_VERSION=testing
notifications:
    slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
cache:
  directories:
  - node_modules/.cache
install:
  - "node . install"
script:
  - "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""