From 7c6f32a10c81cdfac843f8963139bbc90383c55f Mon Sep 17 00:00:00 2001 From: bcoe Date: Sat, 26 Oct 2019 14:17:24 -0700 Subject: [PATCH 1/2] build: switch to c8 for coverage --- .travis.yml | 10 ++++++++-- package.json | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf5a96a7..07256d4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,11 @@ node_js: - "6" - "8" - "10" - - "node" -after_script: npm run coverage + +jobs: + include: + - stage: coverage + node_js: "13" + script: + - npm t + - npm run coverage diff --git a/package.json b/package.json index f2914039..7de02a6f 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "the mighty option parser used by yargs", "main": "index.js", "scripts": { - "test": "nyc mocha test/*.js", + "test": "c8 --reporter=text --reporter=html mocha test/*.js", "posttest": "standard", - "coverage": "nyc report --reporter=text-lcov | coveralls", + "coverage": "c8 report --reporter=text-lcov | coveralls", "release": "standard-version" }, "repository": { @@ -26,10 +26,10 @@ "author": "Ben Coe ", "license": "ISC", "devDependencies": { + "c8": "^6.0.0", "chai": "^4.2.0", "coveralls": "^3.0.2", "mocha": "^5.2.0", - "nyc": "^14.1.0", "standard": "^12.0.1", "standard-version": "^6.0.0" }, From d10a7d7aa68b6a8bb69f1ee2cd92b93fbe319516 Mon Sep 17 00:00:00 2001 From: bcoe Date: Sat, 26 Oct 2019 14:19:58 -0700 Subject: [PATCH 2/2] chore: play with matrix a bit --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 07256d4f..73a542d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,10 @@ os: - linux - windows node_js: - - "6" - "8" - "10" + - "12" + - "13" jobs: include: