From bc50a55a3e4f4c6fb81cacb198cbc590af76c4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 4 Sep 2019 12:51:50 +0200 Subject: [PATCH 1/2] [wip] --- package/ci/appveyor-desktop-gles.bat | 14 +++++++++++--- package/ci/appveyor-desktop.bat | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/package/ci/appveyor-desktop-gles.bat b/package/ci/appveyor-desktop-gles.bat index 42e5c3c..0b024ee 100644 --- a/package/ci/appveyor-desktop-gles.bat +++ b/package/ci/appveyor-desktop-gles.bat @@ -96,6 +96,14 @@ 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 +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 + +codecov -X gcov || exit /b + +type coverage.xml diff --git a/package/ci/appveyor-desktop.bat b/package/ci/appveyor-desktop.bat index 908985b..602886c 100644 --- a/package/ci/appveyor-desktop.bat +++ b/package/ci/appveyor-desktop.bat @@ -97,6 +97,14 @@ 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 +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 + +codecov -X gcov || exit /b + +type coverage.xml From 64cecd92f9ec61d23d4c43034f60591f8b140543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 4 Sep 2019 14:07:37 +0200 Subject: [PATCH 2/2] ? --- package/ci/appveyor-desktop-gles.bat | 4 ++++ package/ci/appveyor-desktop.bat | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/package/ci/appveyor-desktop-gles.bat b/package/ci/appveyor-desktop-gles.bat index 0b024ee..6fe6d7d 100644 --- a/package/ci/appveyor-desktop-gles.bat +++ b/package/ci/appveyor-desktop-gles.bat @@ -100,10 +100,14 @@ coverage combine || 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 602886c..7c87e91 100644 --- a/package/ci/appveyor-desktop.bat +++ b/package/ci/appveyor-desktop.bat @@ -101,10 +101,14 @@ coverage combine || 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