Skip to content

Commit a7b4717

Browse files
authored
testing: replace coveralls with codecov (#51)
* test: use codecov for reporting coverage * update readme * fix build error
1 parent 5fb4e37 commit a7b4717

File tree

6 files changed

+118
-661
lines changed

6 files changed

+118
-661
lines changed

.codecov.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: true
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
9+
status:
10+
project: true
11+
patch: true
12+
changes: false
13+
14+
comment:
15+
layout: "reach,diff,flags"
16+
behavior: once

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ script:
2222
- npm test
2323
- npm run build
2424

25-
#after_script:
26-
# - npm run coveralls
25+
after_script:
26+
- npm run codecov
2727

2828
notifications:
2929
email:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# pdf-annotate.js
22

33
[![Build Status](https://travis-ci.com/Submitty/pdf-annotate.js.svg?branch=master)](https://travis-ci.com/Submitty/pdf-annotate.js)
4-
[![Coverage Status](https://coveralls.io/repos/github/Submitty/pdf-annotate.js/badge.svg?branch=master)](https://coveralls.io/github/Submitty/pdf-annotate.js?branch=master)
4+
[![codecov](https://codecov.io/gh/Submitty/pdf-annotate.js/branch/master/graph/badge.svg)](https://codecov.io/gh/Submitty/pdf-annotate.js)
55

66
Annotation layer for [PDF.js](https://github.com/mozilla/pdf.js).
77

karma.conf.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ let reporters = [
55
process.env.TRAVIS ? 'dots' : 'progress',
66
'coverage-istanbul'
77
];
8-
if (process.env.COVERALLS_REPO_TOKEN) {
9-
reporters.push('coveralls');
10-
}
118

129
module.exports = function(config) {
1310
config.set({
@@ -83,7 +80,7 @@ module.exports = function(config) {
8380
}
8481
},
8582
coverageIstanbulReporter: {
86-
reports: [ 'html', 'lcov', 'text-summary' ],
83+
reports: [ 'html', 'lcovonly', 'text-summary' ],
8784
dir: path.join(__dirname, 'coverage'),
8885
combineBrowserReports: true,
8986
fixWebpackSourcePaths: true

0 commit comments

Comments
 (0)