From 53b25600637fdf5b8e406ac1b395cec723927fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Fri, 8 Dec 2017 18:26:39 +0100 Subject: [PATCH] Add codecov configuration --- .codecov.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..35c010e --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,31 @@ +codecov: + branch: master + +coverage: + precision: 2 + round: down + range: 60...100 + + status: + project: + default: + enabled: yes + target: auto + if_no_uploads: error + if_ci_failed: error + + patch: + default: + enabled: yes + target: 80% + threshold: 60% + if_no_uploads: error + if_ci_failed: error + + changes: + default: + enabled: yes + if_no_uploads: error + if_ci_failed: error + +comment: false diff --git a/.travis.yml b/.travis.yml index 80aff3f..6817147 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ matrix: - env: TOXENV=flake8 - env: DRF=master - python: '2.7' - - python: '3.7' + - python: '3.7-dev' install: - pip install -r requirements/ci.txt