mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
ci: Generate test coverage report
This commit is contained in:
parent
43d442a6df
commit
08a74acb37
7 changed files with 9 additions and 8 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,3 +3,7 @@ __pycache__
|
||||||
/dist
|
/dist
|
||||||
*.egg-info
|
*.egg-info
|
||||||
gtk-blueprint-tool.pc
|
gtk-blueprint-tool.pc
|
||||||
|
|
||||||
|
/.coverage
|
||||||
|
/htmlcov
|
||||||
|
.mypy_cache
|
||||||
|
|
|
@ -6,8 +6,10 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel
|
- dnf install -y meson python3-pip gtk4-devel gobject-introspection-devel
|
||||||
- pip3 install furo mypy sphinx
|
- pip3 install furo mypy sphinx coverage
|
||||||
- mypy gtkblueprinttool
|
- mypy gtkblueprinttool
|
||||||
|
- coverage run -m unittest
|
||||||
|
- coverage html
|
||||||
- meson _build -Ddocs=true
|
- meson _build -Ddocs=true
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
- ninja -C _build test
|
- ninja -C _build test
|
||||||
|
@ -15,6 +17,7 @@ build:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- _build
|
- _build
|
||||||
|
- htmlcov
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: pages
|
stage: pages
|
||||||
|
@ -22,6 +25,7 @@ pages:
|
||||||
- build
|
- build
|
||||||
script:
|
script:
|
||||||
- mv _build/docs/en public
|
- mv _build/docs/en public
|
||||||
|
- mv htmlcov public/coverage
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
using Gtk 4.0;
|
|
||||||
using Gtk 3.0;
|
|
|
@ -1 +0,0 @@
|
||||||
2,7,7,Namespace Gtk-3.0 can't be imported because version 4.0 was imported earlier
|
|
|
@ -1 +0,0 @@
|
||||||
using Gtk 3.0;
|
|
|
@ -1 +0,0 @@
|
||||||
1,11,3,Only GTK 4 is supported
|
|
|
@ -103,8 +103,6 @@ class TestSamples(unittest.TestCase):
|
||||||
|
|
||||||
|
|
||||||
def test_sample_errors(self):
|
def test_sample_errors(self):
|
||||||
self.assert_sample_error("conflicting_namespaces")
|
|
||||||
self.assert_sample_error("duplicate_obj_id")
|
self.assert_sample_error("duplicate_obj_id")
|
||||||
self.assert_sample_error("two_templates")
|
self.assert_sample_error("two_templates")
|
||||||
self.assert_sample_error("using_gtk_3")
|
|
||||||
self.assert_sample_error("using_invalid_namespace")
|
self.assert_sample_error("using_invalid_namespace")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue