From 7552ac078d8d0cdbfd8c1efe13c4e2876169f865 Mon Sep 17 00:00:00 2001 From: Quentin Rossetti Date: Fri, 2 Nov 2018 17:13:26 +0100 Subject: [PATCH] ci: Propagate test errors, part2 --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d65cd73..fd7889e 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,13 @@ "description": "A Node.js wrapper for 7-Zip with platform binaries", "main": "lib/index.js", "scripts": { - "test": "npx mocha -r esm --reporter=spec 'test/**/*.spec.js' --timeout=0 ; npm run test-cleanup", + "test": "npm run test-ci ; npm run test-cleanup", + "test-ci": "npx mocha -r esm --reporter=spec 'test/**/*.spec.js' --timeout=0", "test-docker": "circleci local execute --job build", "test-cleanup": "rm -rf test/_tmp/* ; touch test/_tmp/.gitkeep", "test-debug": "DEBUG=node-7z npm run test", - "coverage": "npx nyc --reporter=lcov npm test", - "coverage-html": "npx nyc --reporter=html npm test" + "coverage": "npx nyc --reporter=html npm test", + "coverage-ci": "npx nyc --reporter=lcov npm test-ci" }, "repository": { "type": "git",