From fb587f11febc1951f42f5643b1532823675c2acf Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 13 Sep 2017 22:58:52 +0200 Subject: [PATCH 1/3] Switch to code-cov --- .travis.yml | 4 ++-- manage.sh | 6 +++--- requirements-dev.txt | 1 + requirements.txt | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1da7974be..74cf2371a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,14 +20,14 @@ before_install: install: - ./manage.sh npm_packages - ./manage.sh update_dev_packages - - pip install coveralls + - pip install codecov script: - ./manage.sh styles - ./manage.sh grunt_build - ./manage.sh tests after_success: - ./manage.sh py_test_coverage - - coveralls + - codecov notifications: irc: channels: diff --git a/manage.sh b/manage.sh index 319a14f2a..e3929c917 100755 --- a/manage.sh +++ b/manage.sh @@ -73,9 +73,9 @@ unit_tests() { py_test_coverage() { echo '[!] Running python test coverage' - PYTHONPATH=`pwd` python -m nose2 -C --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit" - coverage report - coverage html + PYTHONPATH=`pwd` python -m nose2 -C --log-capture --with-coverage --coverage "$SEARX_DIR" -s "$BASE_DIR/tests/unit" \ + && coverage report \ + && coverage html } robot_tests() { diff --git a/requirements-dev.txt b/requirements-dev.txt index 8c2b72305..077a9fa2a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,7 @@ babel==2.3.4 mock==2.0.0 nose2[coverage-plugin] +cov-core==1.15.0 pep8==1.7.0 plone.testing==5.0.0 splinter==0.7.5 diff --git a/requirements.txt b/requirements.txt index 1807205e4..e1b7c160b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,4 @@ pygments==2.1.3 pyopenssl==17.2.0 python-dateutil==2.6.1 pyyaml==3.12 -requests[socks]==2.14.2 +requests[socks]==2.18.4 From cf3a099c65abca441770e613f1a224a80a0ac997 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Thu, 28 Sep 2017 19:08:57 +0200 Subject: [PATCH 2/3] codecov: disable comments in the PR --- .codecov.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..69cb76019 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1 @@ +comment: false From c12e0c39b93d28469038296ce6f1178bc9b5f2aa Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Thu, 28 Sep 2017 19:43:58 +0200 Subject: [PATCH 3/3] codecov : update the commit status --- .codecov.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.codecov.yml b/.codecov.yml index 69cb76019..6cdbc2885 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1 +1,31 @@ comment: false +coverage: + status: + project: + default: + # basic + target: auto + threshold: null + base: auto + # advanced + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null + patch: + default: + # basic + target: auto + threshold: null + base: auto + # advanced + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null