aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-08-14 11:03:26 -0400
committerGitHub <noreply@github.com>2017-08-14 11:03:26 -0400
commitbdc72c7c44421bbb1c5169297a2afda07fc73246 (patch)
treefdfb9731dc2da9209bbdf71936ad0546a78920bf /ci
parentc349083155ccbf94ca7aa8218437ece47bf8e5a4 (diff)
parenta8ae8ae770900f71fed27b6f9e89dbc1923c9997 (diff)
downloadrneovim-bdc72c7c44421bbb1c5169297a2afda07fc73246.tar.gz
rneovim-bdc72c7c44421bbb1c5169297a2afda07fc73246.tar.bz2
rneovim-bdc72c7c44421bbb1c5169297a2afda07fc73246.zip
Merge pull request #7161 from jamessan/codecov
ci: Upload coverage data to codecov.io Closes #7162
Diffstat (limited to 'ci')
-rwxr-xr-xci/after_success.sh1
-rw-r--r--ci/build.bat6
2 files changed, 6 insertions, 1 deletions
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
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