Skip to content

Commit 7ec445d

Browse files
authored
Add coveralls and require 85% test coverage (#37)
1 parent 76575d4 commit 7ec445d

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[run]
2+
source=.
3+
omit=venv/*
4+
5+
[report]
6+
fail_under=85

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
language: python
22
python: "3.6"
3-
install: "pip3 install -r requirements.txt"
3+
install:
4+
- pip3 install -r requirements.txt
45
script:
5-
- "python3 manage.py test"
6-
- "find . -name '*.py' -exec pylint '{}' +"
6+
- coverage run manage.py test
7+
- coverage report # Required coverage threshold specified in .coveragerc
8+
- find . -name '*.py' -exec pylint '{}' +
9+
after_sucess:
10+
- coveralls

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# BinaryAlert: Serverless, Real-time & Retroactive Malware Detection
2+
[![Build Status](https://travis-ci.org/airbnb/binaryalert.svg?branch=master)](https://travis-ci.org/airbnb/binaryalert)
3+
[![Coverage Status](https://coveralls.io/repos/github/airbnb/binaryalert/badge.svg?branch=master)](https://coveralls.io/github/airbnb/binaryalert?branch=master)
4+
5+
26
![BinaryAlert Logo](img/logo.png)
37

48
BinaryAlert is an open-source serverless AWS pipeline where any file uploaded to an S3 bucket is

requirements.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
astroid==1.5.3
22
boto==2.48.0
33
boto3==1.4.5
4-
botocore==1.5.92
4+
botocore==1.5.95
55
certifi==2017.7.27.1
66
chardet==3.0.4
77
cookies==2.2.1
8+
coverage==4.4.1
9+
coveralls==1.1
810
dicttoxml==1.7.4
9-
docutils==0.13.1
11+
docopt==0.6.2
12+
docutils==0.14
1013
idna==2.5
1114
isort==4.2.15
1215
Jinja2==2.9.6

requirements_top_level.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
boto3
2+
coverage
3+
coveralls
24
moto
35
pyfakefs
46
pyhcl

0 commit comments

Comments
 (0)