From 7e07835718237cfea45cbf084caafcaa31dd3cc6 Mon Sep 17 00:00:00 2001 From: Moises De La Cruz Date: Thu, 25 Jun 2020 19:45:28 -0500 Subject: [PATCH] travis ci --- .gitignore | 3 ++- .travis.yml | 6 ++++++ package.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 85d508b..d8e8b5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ *.log - +coverage +.coverage diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d7fce1a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "12.18" +script: "npm run coverage" +# Send coverage data to Coveralls +after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" diff --git a/package.json b/package.json index 64a45e6..bbd10bb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ }, "scripts": { "test": "mocha", - "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info" + "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec", + "coveralls": "cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git",