Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage on AppVeyor #3

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions package/ci/appveyor-desktop-gles.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 15 additions & 3 deletions package/ci/appveyor-desktop.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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