Skip to content

Commit

Permalink
Add Travis CI config along with flake8 (Cloud-CV#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyandtheworld authored and RishabhJain2018 committed Jun 15, 2018
1 parent ef9d164 commit 81a1391
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
omit =
*/python?.?/*
source = evalai/

[report]
exclude_lines =
import
@click.*

omit =
*/python?.?/*
*/tests/*
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: yRccoqBMWwHa9gryKQ3BVIEN6l7RMGlFo
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python
sudo: false
python:
- "3.5"
- "3.6"

install:
- pip install -r requirements.txt
- pip install coveralls

script:
- flake8 ./
- py.test --cov . --cov-config .coveragerc

after_success:
- coveralls --rcfile=.coveragerc

notifications:
email:
on_success: change # [always|never|change]
on_failure: always # [always|never|change]
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
beautifulsoup4==4.6.0
beautifultable==0.5.0
click==6.7
coverage==4.5.1
coveralls==1.3.0
flake8==3.0.4
lxml==4.2.1
pytest==3.5.1
pytest-cov==2.5.1
requests==2.18.4
requests-toolbelt==0.8.0
responses==0.9.0
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 120
exclude = .git,docs/,env/,venv/

0 comments on commit 81a1391

Please sign in to comment.