From e463cb6fa03f807930bb052cba5b80dd46094cca Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 13 Aug 2017 20:34:23 -0400 Subject: ci: Switch to codecov.io for coverage data Continue uploading to coveralls, for now, so we can compare the services. --- .codecov.yml | 23 +++++++++++++++++++++++ README.md | 2 +- ci/after_success.sh | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000000..8cfebaef85 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,23 @@ +codecov: + notify: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "70...100" + + status: + project: yes + patch: yes + changes: no + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: off diff --git a/README.md b/README.md index cb3ac46a24..0442ee61de 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Travis Build Status](https://travis-ci.org/neovim/neovim.svg?branch=master)](https://travis-ci.org/neovim/neovim) [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/urdqjrik5u521fac/branch/master?svg=true)](https://ci.appveyor.com/project/neovim/neovim/branch/master) -[![Coverage Status](https://img.shields.io/coveralls/neovim/neovim.svg)](https://coveralls.io/r/neovim/neovim) +[![codecov](https://img.shields.io/codecov/c/github/neovim/neovim.svg)](https://codecov.io/gh/neovim/neovim) [![Coverity Scan Build](https://scan.coverity.com/projects/2227/badge.svg)](https://scan.coverity.com/projects/2227) [![Clang Scan Build](https://neovim.io/doc/reports/clang/badge.svg)](https://neovim.io/doc/reports/clang) [![PVS-studio Check](https://neovim.io/doc/reports/pvs/badge.svg)](https://neovim.io/doc/reports/pvs) diff --git a/ci/after_success.sh b/ci/after_success.sh index 0215eb139b..388b6eb714 100755 --- a/ci/after_success.sh +++ b/ci/after_success.sh @@ -5,4 +5,5 @@ set -o pipefail if [[ -n "${GCOV}" ]]; then coveralls --gcov "$(which "${GCOV}")" --encoding iso-8859-1 || echo 'coveralls upload failed.' + bash <(curl -s https://codecov.io/bash) || echo 'codecov upload failed.' fi -- cgit From e88fc3542903ac2527a8f6a90135701bd19fec2f Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 14 Aug 2017 08:30:59 -0400 Subject: ci: Collect coverage data for MINGW_64 builds on appveyor --- appveyor.yml | 8 ++++++++ ci/build.bat | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index edb679d223..acf21ced9d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,14 @@ version: '{build}' configuration: - MINGW_64 - MINGW_32 +environment: + matrix: + - USE_GCOV: ON + - USE_GCOV: OFF +matrix: + exclude: + - configuration: MINGW_32 + USE_GCOV: ON install: [] build_script: - call ci\build.bat diff --git a/ci/build.bat b/ci/build.bat index c871c6b849..9c6b77c49a 100644 --- a/ci/build.bat +++ b/ci/build.bat @@ -38,13 +38,17 @@ cd .. :: Build Neovim mkdir build cd build -cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUSTED_OUTPUT_TYPE=nvim -DGPERF_PRG="C:\msys64\usr\bin\gperf.exe" .. || goto :error +cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUSTED_OUTPUT_TYPE=nvim -DUSE_GCOV="%USE_GCOV%" -DGPERF_PRG="C:\msys64\usr\bin\gperf.exe" .. || goto :error mingw32-make VERBOSE=1 || goto :error bin\nvim --version || goto :error :: Functional tests mingw32-make functionaltest VERBOSE=1 || goto :error +if "%USE_GCOV%" == "ON" ( + C:\msys64\usr\bin\bash -lc "cd /c/projects/neovim; bash <(curl -s https://codecov.io/bash) || echo 'codecov upload failed.'" +) + :: Build artifacts cpack -G ZIP -C RelWithDebInfo if defined APPVEYOR_REPO_TAG_NAME cpack -G NSIS -C RelWithDebInfo -- cgit From a8ae8ae770900f71fed27b6f9e89dbc1923c9997 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 14 Aug 2017 09:21:44 -0400 Subject: ci: Ignore QB for codecov's CI status --- .codecov.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.codecov.yml b/.codecov.yml index 8cfebaef85..0b3de06b97 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,6 +1,10 @@ codecov: notify: require_ci_to_pass: yes + ci: + - appveyor + - travis + - !neovim-qb.szakmeister.net coverage: precision: 2 -- cgit