Skip to content

Commit 7271307

Browse files
author
Matthew Aynalem
committed
fixes Netflix#30 : add coveralls for test coverage reporting
1 parent cdcc506 commit 7271307

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.coveragerc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[report]
2+
include =
3+
bless/*.py
4+
omit =
5+
bless/__about__.py

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ matrix:
99
- python: "2.7"
1010

1111
install:
12+
- pip install coveralls
1213
- make develop
1314

1415
before_script:
1516

1617
script:
17-
- make test
18+
- make lint
19+
- make coverage
20+
21+
after_success:
22+
- coveralls
1823

1924
notifications:
2025
email:

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ lint:
2424
@echo ""
2525

2626
coverage:
27-
coverage run --branch --source=bless -m py.test tests
27+
@echo "--> Running Python tests with coverage"
28+
coverage run --branch --source=bless -m py.test tests || exit 1
2829
coverage html
30+
@echo ""
2931

3032
publish:
3133
rm -rf ./publish/bless_lambda/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![alt text](bless_logo.png "BLESS")
22
# BLESS - Bastion's Lambda Ephemeral SSH Service
3-
[![Build Status](https://travis-ci.org/Netflix/bless.svg?branch=master)](https://travis-ci.org/Netflix/bless) [![Join the chat at https://gitter.im/Netflix/bless](https://badges.gitter.im/Netflix/bless.svg)](https://gitter.im/Netflix/bless?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3+
[![Build Status](https://travis-ci.org/Netflix/bless.svg?branch=master)](https://travis-ci.org/Netflix/bless) [![Test coverage](https://coveralls.io/repos/github/Netflix/bless/badge.svg?branch=master)](https://coveralls.io/github/Netflix/bless) [![Join the chat at https://gitter.im/Netflix/bless](https://badges.gitter.im/Netflix/bless.svg)](https://gitter.im/Netflix/bless?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

55
BLESS is an SSH Certificate Authority that runs as a AWS Lambda function and is used to sign ssh
66
public keys.

0 commit comments

Comments
 (0)