Skip to content
This repository was archived by the owner on Jul 23, 2021. It is now read-only.

Commit 69b84a7

Browse files
committed
chore: add code coverage
1 parent 529fd6c commit 69b84a7

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
coverage

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ cache:
77
bundler: true
88
directories:
99
- node_modules
10+
after_success:
11+
- npm run codecov

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)
1+
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![Build Status](https://travis-ci.org/9cookies/serverless-aws-models.svg?branch=master)](https://travis-ci.org/9cookies/serverless-aws-models) [![codecov](https://codecov.io/gh/9cookies/serverless-aws-models/branch/master/graph/badge.svg)](https://codecov.io/gh/9cookies/serverless-aws-models)
2+
23

34
# Serverless AWS Models
45

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"description": "",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "jasmine ./index.spec.js"
7+
"codecov": "cat coverage/*/lcov.info | codecov",
8+
"test": "istanbul cover -x \"src/index.spec.js\" jasmine ./src/index.spec.js"
89
},
910
"author": "",
1011
"license": "MIT",
1112
"devDependencies": {
13+
"codecov": "^1.0.1",
1214
"eslint": "^3.11.1",
15+
"istanbul": "^0.4.5",
1316
"jasmine": "^2.5.2"
1417
}
1518
}

0 commit comments

Comments
 (0)