diff --git a/.circleci/config.yml b/.circleci/config.yml index 611107b..6a9dff4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,8 +29,11 @@ jobs: name: Lint command: npm run lint - run: - name: Run test - command: npm test + name: Run tests + command: npm run test + - run: + name: Generate Coverage + command: npm run coverage - run: name: Push Coverage command: codecov diff --git a/appveyor.yml b/appveyor.yml index 6e5a2b9..e09cf84 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,6 @@ # Test against the latest version of this Node.js version environment: matrix: - - nodejs_version: "16" - nodejs_version: "15" - nodejs_version: "14" - nodejs_version: "12" diff --git a/package.json b/package.json index ccd3325..ab936b2 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "test": "test" }, "scripts": { - "lint": "jshint --reporter=node_modules/jshint-stylish lzwCompress.js && jshint --reporter=node_modules/jshint-stylish test/lzwCompress.spec.js", - "test": "nyc jasmine" + "coverage": "nyc report --reporter=text-lcov | coveralls", + "lint": "jshint --reporter=node_modules/jshint-stylish lzwCompress.js && jshint --reporter=node_modules/jshint-stylish spec/lzwCompress.spec.js", + "test": "nyc --reporter=lcov --reporter=text --reporter=html jasmine" }, "files": [ "package.json",