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 11, 2021
1 parent 39aaed9 commit 26c9824
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- 10
- 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 26c9824

Please sign in to comment.