mirror of
https://github.com/neovim/neovim.git
synced 2026-07-17 14:41:33 +00:00
Merge pull request #7161 from jamessan/codecov
ci: Upload coverage data to codecov.io Closes #7162
This commit is contained in:
27
.codecov.yml
Normal file
27
.codecov.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
codecov:
|
||||
notify:
|
||||
require_ci_to_pass: yes
|
||||
ci:
|
||||
- appveyor
|
||||
- travis
|
||||
- !neovim-qb.szakmeister.net
|
||||
|
||||
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
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
[](https://travis-ci.org/neovim/neovim)
|
||||
[](https://ci.appveyor.com/project/neovim/neovim/branch/master)
|
||||
[](https://coveralls.io/r/neovim/neovim)
|
||||
[](https://codecov.io/gh/neovim/neovim)
|
||||
[](https://scan.coverity.com/projects/2227)
|
||||
[](https://neovim.io/doc/reports/clang)
|
||||
[](https://neovim.io/doc/reports/pvs)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user