[gobject-introspection] meson: build/install mdextensions.py; and add a simple test



commit 644e2dbf57da42aaf96f6063fe2901da1ca414f6
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Mon Dec 17 17:10:40 2018 +0100

    meson: build/install mdextensions.py; and add a simple test
    
    Add a simple test using the docwriter so we trigger the docwriter related
    Python imports.

 .gitlab-ci/test-msys2-meson.sh  |  4 +++-
 giscanner/meson.build           |  1 +
 tests/scanner/meson.build       |  1 +
 tests/scanner/test_docwriter.py | 15 +++++++++++++++
 4 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/test-msys2-meson.sh b/.gitlab-ci/test-msys2-meson.sh
index 9c5abe3e..2d3952a8 100644
--- a/.gitlab-ci/test-msys2-meson.sh
+++ b/.gitlab-ci/test-msys2-meson.sh
@@ -19,6 +19,7 @@ pacman --noconfirm -S --needed \
     mingw-w64-$MSYS2_ARCH-meson \
     mingw-w64-$MSYS2_ARCH-python3 \
     mingw-w64-$MSYS2_ARCH-python3-pip \
+    mingw-w64-$MSYS2_ARCH-python3-mako \
     mingw-w64-$MSYS2_ARCH-libffi \
     mingw-w64-$MSYS2_ARCH-pkg-config \
     mingw-w64-$MSYS2_ARCH-cairo \
@@ -29,7 +30,8 @@ pacman --noconfirm -S --needed \
 export CCACHE_BASEDIR="${CI_PROJECT_DIR}"
 export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
 
-pip3 install --upgrade --user meson==0.48.2 flake8
+# FIXME: markdown: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/250
+pip3 install --upgrade --user meson==0.48.2 flake8 markdown==2.6.11
 export PATH="$HOME/.local/bin:$PATH"
 
 # FIXME: https://github.com/Alexpux/MINGW-packages/pull/4064
diff --git a/giscanner/meson.build b/giscanner/meson.build
index 7b4b0d9d..e9f75e73 100644
--- a/giscanner/meson.build
+++ b/giscanner/meson.build
@@ -15,6 +15,7 @@ giscanner_files = [
   'gdumpparser.py',
   'libtoolimporter.py',
   'maintransformer.py',
+  'mdextensions.py',
   'message.py',
   'msvccompiler.py',
   'pkgconfig.py',
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build
index 525e5f09..cc5ee530 100644
--- a/tests/scanner/meson.build
+++ b/tests/scanner/meson.build
@@ -13,6 +13,7 @@ if cc.get_id() != 'msvc'
     'test_transformer.py',
     'test_xmlwriter.py',
     'test_pkgconfig.py',
+    'test_docwriter.py',
     ]
 endif
 
diff --git a/tests/scanner/test_docwriter.py b/tests/scanner/test_docwriter.py
new file mode 100644
index 00000000..8b2d0fb0
--- /dev/null
+++ b/tests/scanner/test_docwriter.py
@@ -0,0 +1,15 @@
+import unittest
+
+from giscanner.docwriter import DocWriter
+from giscanner.transformer import Transformer
+
+
+class TestDocWriter(unittest.TestCase):
+
+    def test_main(self):
+        transformer = Transformer(None)
+        DocWriter(transformer, "gjs", "devdocs")
+
+
+if __name__ == '__main__':
+    unittest.main()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]