mirror of
https://github.com/boostorg/nowide.git
synced 2026-01-19 04:22:12 +00:00
Pass correct commit SHA to codecov on Appveyor PRs
This commit is contained in:
@@ -151,9 +151,13 @@ for:
|
||||
choco install opencppcoverage
|
||||
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
|
||||
OpenCppCoverage.exe --quiet --export_type cobertura:cobertura.xml `
|
||||
--sources ${env:APPVEYOR_BUILD_FOLDER} --modules "$PWD" `
|
||||
--cover_children --working_dir "$PWD" -- ctest -C Debug
|
||||
bash codecov.sh -f cobertura.xml -n Appveyor -e APPVEYOR_BUILD_WORKER_IMAGE -X gcov -X search -Z -U "-s" -A "-s"
|
||||
--sources ${env:APPVEYOR_BUILD_FOLDER} --modules "$PWD" `
|
||||
--cover_children --working_dir "$PWD" -- ctest -C Debug
|
||||
$commit = if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) { $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT } else { $env:APPVEYOR_REPO_COMMIT }
|
||||
bash codecov.sh -f cobertura.xml -n Appveyor -e APPVEYOR_BUILD_WORKER_IMAGE `
|
||||
-C $commit `
|
||||
-X gcov -X search -Z `
|
||||
-U "-s" -A "-s"
|
||||
}
|
||||
# Build consumer example test
|
||||
- cmake --build . --config %configuration% --target install
|
||||
|
||||
Reference in New Issue
Block a user