From 80112983e6f538a033ce6fbdebcbd5c6d6651a7f Mon Sep 17 00:00:00 2001 From: James Nzomo Date: Thu, 8 Jun 2017 01:33:28 +0300 Subject: [PATCH 1/2] yet another experiment --- circle.yml | 2 +- mysite/test.py | 6 ++++++ requirements.txt | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 mysite/test.py diff --git a/circle.yml b/circle.yml index 87f6496..a659835 100644 --- a/circle.yml +++ b/circle.yml @@ -1,5 +1,5 @@ test: override: - export CODECOV_TOKEN=71e044b4-90b8-40ad-8cde-5c8c7b729ddd - - coverage run manage.py test --settings="mysite.settings" && bash <(curl -s https://codecov.io/bash) + - coverage run manage.py test mysite.test --settings="mysite.settings" && bash <(curl -s https://codecov.io/bash) - coverage report -m diff --git a/mysite/test.py b/mysite/test.py new file mode 100644 index 0000000..cdb1944 --- /dev/null +++ b/mysite/test.py @@ -0,0 +1,6 @@ +import unittest + + +class FormatToTwoDecimalPlacesTestCase(unittest.TestCase): + def test_nothing(self): + pass diff --git a/requirements.txt b/requirements.txt index 4a2ccbe..2f81255 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ coverage==4.4.1 -Django==1.5 +Django==1.6 From 49f12da29a4ddf7522296ad1397221dc8dc7a0c5 Mon Sep 17 00:00:00 2001 From: James Nzomo Date: Thu, 8 Jun 2017 01:37:41 +0300 Subject: [PATCH 2/2] codecov config --- codecov.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..765e05d --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: false # if true: only post the comment if coverage changes + require_base: no # [yes :: must have a base report to post] + require_head: yes # [yes :: must have a head report to post] + branches: null