diff options
author | isaacs <i@izs.me> | 2019-08-21 07:00:58 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-08-22 11:04:14 +0300 |
commit | fea3a023a80863f32a5f97f5132401b1a16161b8 (patch) | |
tree | 044fa365eb04f45aab76c44a2021ac2202f896b6 /.travis.yml | |
parent | 291aba7b821e247b96240b1ec037310ead69a594 (diff) |
travis: run tests on Windows as well
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index 607b941c3..1d2e3120c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,53 @@ sudo: true # need to declare the language as well as the matrix below language: node_js + +os: + - linux + +node_js: + - 12 + - 10 + - 8 + +env: "DEPLOY_VERSION=testing" + # 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 + # Run the sudotest, but only on Linux - 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: # run the sudo tests, with coverage enabled - - "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage" - # previous LTS is next most important + - "sudo PATH=$PATH $(which node) . run tap -- \"test/tap/*.js\" --coverage --timeout 600" + + # also run standard and license checking - node_js: "10" - env: DEPLOY_VERSION=testing script: - - "npx standard" - - "node . run licenses" - - "node . run tap -- \"test/tap/*.js\"" - - node_js: "8" - env: DEPLOY_VERSION=testing + - "npx standard" + - "node . run licenses" + + # separate out node 6 so we can turn off caching, because that + # always breaks for some reason. - node_js: "6" - env: DEPLOY_VERSION=testing cache: false + env: "DEPLOY_VERSION=testing" + + # only run one test on Windows, because it's hella slow + - node_js: "12" + os: "windows" + env: "DEPLOY_VERSION=testing" + notifications: slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8 + install: - "node . install" + script: - - "node . run tap -- \"test/tap/*.js\"" + - "node . run tap -- \"test/tap/*.js\" -t600 -Rclassic -c" |