Skip to content

Commit

Permalink
Improve CI configs. (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and bezoerb committed Aug 6, 2019
1 parent 5bc0d46 commit f8846a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
sudo: false
language: node_js

git:
depth: 5

node_js:
- '8'
- '10'
after_success: npm run coveralls
- "8"
- "10"
- "12"

cache: npm

after_success:
- if [[ "$TRAVIS_NODE_VERSION" = "10" ]]; then npm run coveralls; fi
31 changes: 14 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
clone_depth: 10

version: "{build}"

# What combinations to test
shallow_clone: true

environment:
PLATFORM: x64
matrix:
- nodejs_version: "8"
platform: x86
- nodejs_version: "10"
platform: x86
- NODEJS_VERSION: "8"
- NODEJS_VERSION: "10"
- NODEJS_VERSION: "12"

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install

test_script:
# Output useful info for debugging
- node --version && npm --version
# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- cmd: npm test
- ps: Install-Product node $env:NODEJS_VERSION $env:PLATFORM
- npm ci

build: off

test_script:
- node --version
- npm --version
- npm test

matrix:
fast_finish: true

cache:
- node_modules -> package.json
- '%APPDATA%\npm-cache\ -> appveyor.yml,package.json,package-lock.json'

0 comments on commit f8846a2

Please sign in to comment.