Skip to content

Commit

Permalink
add travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jcramer committed Apr 23, 2021
1 parent 39aaed9 commit 8fdfc62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- 12
- 14.15
sudo: false
script:
- npm test
after_success:
- npm run coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8fdfc62

Please sign in to comment.