diff options
author | James McCoy <jamessan@jamessan.com> | 2017-08-14 08:30:59 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-08-14 09:15:59 -0400 |
commit | e88fc3542903ac2527a8f6a90135701bd19fec2f (patch) | |
tree | 14752a4f9f987b5eb205a390975e785f03ba5075 | |
parent | e463cb6fa03f807930bb052cba5b80dd46094cca (diff) | |
download | rneovim-e88fc3542903ac2527a8f6a90135701bd19fec2f.tar.gz rneovim-e88fc3542903ac2527a8f6a90135701bd19fec2f.tar.bz2 rneovim-e88fc3542903ac2527a8f6a90135701bd19fec2f.zip |
ci: Collect coverage data for MINGW_64 builds on appveyor
-rw-r--r-- | appveyor.yml | 8 | ||||
-rw-r--r-- | ci/build.bat | 6 |
2 files changed, 13 insertions, 1 deletions
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 |