Skip to content

Commit

Permalink
Fixed Codecov for not generating report (fossasia#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthS007 authored and vaibhavsingh97 committed Jan 15, 2018
1 parent 4e8da7b commit c3aa71d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ services:
install:
- pip install codecov flake8 pytest
- pip install -r requirements.txt

before_script:
- flake8 . --count --max-complexity=15 --show-source --statistics
script:
- python app/server.py > /dev/null &
- pytest --capture=sys --showlocals
- pytest --cov=./
- kill $(lsof -t -i:7001)
after_success:
- bash <(curl -s https://codecov.io/bash)
18 changes: 17 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
codecov:
token: 170b5173-c673-4897-805b-0b7161894bdb
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

status:
project: yes
patch: yes
changes: no

comment:
layout: "reach, diff, flags, files, footer"
behavior: default
require_changes: no

0 comments on commit c3aa71d

Please sign in to comment.