Skip to content

Commit

Permalink
Add coveralls and require 85% test coverage (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinbyers authored Aug 12, 2017
1 parent 76575d4 commit 7ec445d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
source=.
omit=venv/*

[report]
fail_under=85
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: python
python: "3.6"
install: "pip3 install -r requirements.txt"
install:
- pip3 install -r requirements.txt
script:
- "python3 manage.py test"
- "find . -name '*.py' -exec pylint '{}' +"
- coverage run manage.py test
- coverage report # Required coverage threshold specified in .coveragerc
- find . -name '*.py' -exec pylint '{}' +
after_sucess:
- coveralls
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# BinaryAlert: Serverless, Real-time & Retroactive Malware Detection
[![Build Status](https://travis-ci.org/airbnb/binaryalert.svg?branch=master)](https://travis-ci.org/airbnb/binaryalert)
[![Coverage Status](https://coveralls.io/repos/github/airbnb/binaryalert/badge.svg?branch=master)](https://coveralls.io/github/airbnb/binaryalert?branch=master)


![BinaryAlert Logo](img/logo.png)

BinaryAlert is an open-source serverless AWS pipeline where any file uploaded to an S3 bucket is
Expand Down
7 changes: 5 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
astroid==1.5.3
boto==2.48.0
boto3==1.4.5
botocore==1.5.92
botocore==1.5.95
certifi==2017.7.27.1
chardet==3.0.4
cookies==2.2.1
coverage==4.4.1
coveralls==1.1
dicttoxml==1.7.4
docutils==0.13.1
docopt==0.6.2
docutils==0.14
idna==2.5
isort==4.2.15
Jinja2==2.9.6
Expand Down
2 changes: 2 additions & 0 deletions requirements_top_level.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
boto3
coverage
coveralls
moto
pyfakefs
pyhcl
Expand Down

0 comments on commit 7ec445d

Please sign in to comment.