From e6b8c080f13edcb88b8335e9a5ca8335ba757ce5 Mon Sep 17 00:00:00 2001 From: Ryan Zimmerman Date: Fri, 6 Apr 2018 13:25:42 -0400 Subject: [PATCH] BREAKING: Drop builds for Node 4, 5, & 7; add OSX builds & Node 9 --- .travis.yml | 27 +++++++++++++++------------ appveyor.yml | 1 - package.json | 1 + 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 45752ef6..c825c3b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,21 @@ sudo: false language: node_js +os: + - linux + - osx +node_js: + - 6 + - 8 + - 9 +env: TEST_SUITE=unit matrix: + exclude: + - os: linux + node_js: 8 include: - - node_js: "4" - - node_js: "5" - # We run both lint and unit on Node 6 - - node_js: "6" - env: TEST_SUITE=test - - node_js: "7" - # We run coverage on Node 8 - - node_js: "8" - env: TEST_SUITE=coverage -env: - - TEST_SUITE=unit + - os: linux + node_js: 8 + env: TEST_SUITE=full-ci script: npm run-script $TEST_SUITE after_success: - - if [ $TEST_SUITE = coverage ]; then npm run coveralls; fi + - if [ $TEST_SUITE = full-ci ]; then npm run coveralls; fi diff --git a/appveyor.yml b/appveyor.yml index 6c768eda..1f37ecdc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,7 +2,6 @@ environment: matrix: # node.js - - nodejs_version: "4" - nodejs_version: "6" - nodejs_version: "8" diff --git a/package.json b/package.json index 0a6dd778..0460ae0f 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ }, "main": "./lib/index.js", "scripts": { + "full-ci": "npm run lint && npm run coverage", "coverage": "istanbul cover -i 'lib/**' -x '**/__tests__/**' test.js", "coveralls": "coveralls < coverage/lcov.info", "lint": "standard && standard-markdown",