Skip to content

Commit

Permalink
Add travis, coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ddamato committed Jun 16, 2020
1 parent ae139ff commit f50eb1c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
dist
.DS_Store
.nyc_output
.nyc_output
coverage
.coveralls.yml
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
src
.DS_Store
.nyc_output
.nyc_output
coverage
.coveralls.yml
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
script: npm run coverage
after_success: 'npm run coveralls'
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"scripts": {
"build": "rollup -c",
"copy:dist": "cp -r ./dist/*.js ./docs/savager",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"build:docs": "npm run build && npm run copy:dist && node ./bin/build-docs.js",
"prepare": "npm run build",
"prepare:assets": "node ./bin/create-symbols.js -i docs/svg -o docs/assets -t esm",
"test": "nyc mocha test/**/*.test.js -r esm",
"test": "nyc --reporter=html --reporter=text mocha test/**/*.test.js -r esm",
"version": "auto-changelog -p && git add CHANGELOG.md"
},
"bin": {
Expand Down Expand Up @@ -45,6 +47,7 @@
"auto-changelog": "^2.0.0",
"chai": "^4.2.0",
"cheerio": "^1.0.0-rc.3",
"coveralls": "^3.1.0",
"esm": "^3.2.25",
"fs-extra": "^9.0.1",
"html-minifier": "^4.0.0",
Expand Down

0 comments on commit f50eb1c

Please sign in to comment.