Skip to content

Commit

Permalink
Add support to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
evandromacedo committed Oct 15, 2019
1 parent d9fdfc8 commit d8e3163
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- node
node_js: node
cache: npm
before_script:
- npm run build
before_script: npm run build
after_success: npm run coveralls
40 changes: 40 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"start": "rollup -c -w",
"build": "NODE_ENV=production rollup -c",
"build:dev": "rollup -c",
"test": "NODE_ENV=test jest",
"test:dev": "NODE_ENV=test jest --watch",
"test": "jest",
"test:dev": "jest --watch",
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
"predeploy": "npm run build && cd site && npm install && npm run build",
"deploy": "gh-pages -d site/dist"
},
Expand Down Expand Up @@ -46,6 +47,7 @@
"@babel/preset-react": "^7.0.0",
"autoprefixer": "^9.6.4",
"babel-jest": "^24.9.0",
"coveralls": "^3.0.7",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.4.2",
Expand Down

0 comments on commit d8e3163

Please sign in to comment.