Skip to content

Commit e00fa8e

Browse files
sehropebendrucker
authored andcommitted
Add code coverage to CI (#97)
1 parent afead5b commit e00fa8e

File tree

5 files changed

+1184
-10
lines changed

5 files changed

+1184
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
coverage/
12
node_modules
3+
.nyc_output/

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: node_js
22
node_js:
33
- '4'
44
- 'lts/*'
5-
- 'node'
6-
env:
7-
- PGUSER=postgres
5+
matrix:
6+
include:
7+
- name: 'Code Coverage'
8+
node_js: 'stable'
9+
script: 'npm run coverage-ci'

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
.PHONY: publish-patch test
1+
.PHONY: coverage minor patch test
22

33
test:
44
npm test
55

66
lint:
77
npm run lint
88

9+
coverage:
10+
npm run coverage
11+
912
patch: test
1013
npm version patch -m "Bump version"
1114
git push origin master --tags

0 commit comments

Comments
 (0)