diff --git a/package/ci/appveyor-desktop-gles.bat b/package/ci/appveyor-desktop-gles.bat index 42e5c3c4..6fe6d7d3 100644 --- a/package/ci/appveyor-desktop-gles.bat +++ b/package/ci/appveyor-desktop-gles.bat @@ -96,6 +96,18 @@ rem python -m doctest -v *.rst || exit /b rem Upload coverage cd ../../src/python || exit /b coverage combine || exit /b -rem TODO: Currently disabled because I can't seem to convince it to relocate -rem the paths via codecov.yml: https://github.com/mosra/magnum-bindings/pull/3 -rem codecov -X gcov || exit /b + +rem I am unable to convince codecov to relocate paths using codecov.yml so +rem let's do that manually. But that doesn't work either. +powershell -Command "(gc .coverage) -replace 'C:\\\\projects\\\\magnum-bindings\\\\build\\\\src\\\\python\\\\', 'C:\\projects\\magnum-bindings\\src\\python\\' | Out-File -encoding ASCII .coverage" || exit /b + +type .coverage + +del ..\..\build\src\python\corrade\__init__.py || exit /b +del ..\..\build\src\python\magnum\__init__.py || exit /b +del ..\..\build\src\python\magnum\platform\__init__.py || exit /b + +cd ..\.. +codecov -X gcov || exit /b + +type coverage.xml diff --git a/package/ci/appveyor-desktop.bat b/package/ci/appveyor-desktop.bat index 908985bd..7c87e914 100644 --- a/package/ci/appveyor-desktop.bat +++ b/package/ci/appveyor-desktop.bat @@ -97,6 +97,18 @@ rem python -m doctest -v *.rst || exit /b rem Upload coverage cd ../../src/python || exit /b coverage combine || exit /b -rem TODO: Currently disabled because I can't seem to convince it to relocate -rem the paths via codecov.yml: https://github.com/mosra/magnum-bindings/pull/3 -rem codecov -X gcov || exit /b + +rem I am unable to convince codecov to relocate paths using codecov.yml so +rem let's do that manually. But that doesn't work either. +powershell -Command "(gc .coverage) -replace 'C:\\\\projects\\\\magnum-bindings\\\\build\\\\src\\\\python\\\\', 'C:\\projects\\magnum-bindings\\src\\python\\' | Out-File -encoding ASCII .coverage" || exit /b + +type .coverage + +del ..\..\build\src\python\corrade\__init__.py || exit /b +del ..\..\build\src\python\magnum\__init__.py || exit /b +del ..\..\build\src\python\magnum\platform\__init__.py || exit /b + +cd ..\.. +codecov -X gcov || exit /b + +type coverage.xml