From 64db036d0081b09df4c0225e5848c33b4278ec6d Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 25 Jun 2018 14:48:18 +0100 Subject: [PATCH] Add code coverage --- .codecov.yml | 11 +++++++++++ .travis.yml | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..c2336342 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,11 @@ +coverage: + precision: 2 + round: down + range: "80...100" + + status: + project: yes + patch: no + changes: no + +comment: off diff --git a/.travis.yml b/.travis.yml index 76db8c4f..2f1bb4fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,12 @@ python: install: - pip install -r requirements.txt + - pip install codecov - if [[ $TRAVIS_PYTHON_VERSION != '3.5' ]]; then pip install black; fi script: - scripts/test - if [[ $TRAVIS_PYTHON_VERSION != '3.5' ]]; then scripts/lint; fi + +after_script: + - codecov