Skip to content

Commit

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

git:
depth: 5

node_js:
- '12'
- '10'
- '8'
- "8"
- "10"
- "12"

cache: npm

after_success:
- npm run coveralls
- if [[ "$TRAVIS_NODE_VERSION" = "10" ]]; then npm run coveralls; fi
25 changes: 14 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
# https://www.appveyor.com/docs/appveyor-yml
version: "{build}"

version: '{build}'

clone_depth: 10
shallow_clone: true

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

install:
- ps: Install-Product node $env:nodejs_version
- npm install
- ps: Install-Product node $env:NODEJS_VERSION $env:PLATFORM
- npm ci

build: off

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

matrix:
fast_finish: true

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

0 comments on commit dbe6a3a

Please sign in to comment.