diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3361f19a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: node_js +node_js: + - 10 + - 12 + - 14.15 +sudo: false +script: + - npm test +after_success: + - npm run coverage \ No newline at end of file diff --git a/package.json b/package.json index bf56274d..ce4879d8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "dist/" ], "scripts": { - "test": "npx tsc && nyc mocha", + "test": "mocha", + "coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls", "build": "npx tsc && mkdirp dist && browserify index.js --standalone slpjs > dist/slpjs.js && uglifyjs dist/slpjs.js > dist/slpjs.min.js" }, "repository": {