Skip to content

Commit 32a0f81

Browse files
committed
Enable coveralls
1 parent 8a5d4cb commit 32a0f81

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
git:
5+
depth: 1
6+
after_success: npm run coverage_on_travis

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/jest": "^26.0.0",
1919
"@types/react": "^16.7.22",
2020
"@types/react-test-renderer": "^16.9.2",
21+
"coveralls": "^3.1.0",
2122
"jest": "^26.0.1",
2223
"prettier": "^2.0.5",
2324
"react": "^16.13.1",
@@ -49,7 +50,8 @@
4950
"fix": "prettier --write src/",
5051
"test": "npm run lint && tsc --build type-test/ && jest",
5152
"build": "tsc --build .",
52-
"prepare": "npm run build"
53+
"prepare": "npm run build",
54+
"coverage_on_travis": "cat ./coverage/lcov.info | coveralls"
5355
},
5456
"homepage": "https://github.com/google/react-schemaorg#readme",
5557
"bugs": "https://github.com/google/react-schemaorg/issues",

0 commit comments

Comments
 (0)