diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb2511c044919..db0938134c0f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: node-version: [8.x, 10.x, 12.x] - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] runs-on: ${{ matrix.os }} @@ -28,6 +28,13 @@ jobs: # Run the tests - name: Run Tap tests + run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c + env: + DEPLOY_VERSION: testing + + # Run coverage check + - name: Run coverage report + if: matrix.os == 'ubuntu-latest' && matrix.node-version == '12.x' run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c env: DEPLOY_VERSION: testing diff --git a/.travis.yml b/.travis.yml index 151be8440adb1..ccea6b37dc9db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: node_js os: - - linux + - windows node_js: - 12 @@ -11,37 +11,6 @@ node_js: 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: - # 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 --timeout 600" - - # also run standard and license checking - - node_js: "10" - script: - - "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" - 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