From c3aa71d85d949d0c3cbdc63e128a041536c48d59 Mon Sep 17 00:00:00 2001 From: Parth <24358501+ParthS007@users.noreply.github.com> Date: Mon, 15 Jan 2018 11:35:43 +0530 Subject: [PATCH] Fixed Codecov for not generating report (#441) --- .travis.yml | 3 ++- codecov.yml | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52f1a52d..a8e86dd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) diff --git a/codecov.yml b/codecov.yml index 833ca592..af37d9e3 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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