summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
* ci: Install mako and markup modules in DockerEmmanuele Bassi2021-06-241-5/+0
| | | | Don't install them as part of the CI job. It's pointless repetition.
* ci: Use modern Meson command lineEmmanuele Bassi2021-06-241-31/+33
| | | | | | | Don't call Ninja directly, and don't enter the build directory. Also move shared options to environment variables, so we don't have to copy and paste them everywhere.
* ci: Bump up the Docker tagsEmmanuele Bassi2021-06-241-2/+2
|
* Make test suite work with cross-related optionsJohn Ericson2021-05-231-0/+21
| | | | | | | | | | Because of skepticism I received in #224, I made this PR which keeps the testsuite and CI improvements but doesn't add any new build options. I hope this would be less controversial: - no new knobs - tests for those using existing build options - CI tests `build_introspection_data = false`
* Don't mypy giscanner src and installationJohn Ericson2021-05-231-1/+1
| | | | This resulted in duplicate module errors for me.
* CI: move from mingw32 to mingw64Christoph Reiter2021-05-091-2/+2
| | | | | ccache is currently broken somehow. With 32bit Windows getting less and less usage/testing it's a good idea to move to 64 bit anyway.
* CI: pin mypy for nowChristoph Reiter2021-01-251-1/+1
| | | | | The latest release (0.800) finds a handful of new problems that need to be addressed first.
* Require Python 3.6Christoph Reiter2020-11-121-3/+3
| | | | 3.5 is EOL now and we'd like to use newer typing features
* Add basic mypy supportChristoph Reiter2020-11-071-1/+2
| | | | | | Silence some errors, run mypy in CI Adding annotations to functions/classes will make mypy check them.
* CI: also build the example using libgirepositoryChristoph Reiter2020-05-191-0/+4
|
* CI: add two jobs building a project using g-i with meson and autotoolsChristoph Reiter2020-05-191-1/+29
| | | | | | | This tests that after installing the g-i tools a simple project using them can be build with meson and autotools. Fixes #341
* CI: switch to new win32 runnersChristoph Reiter2020-05-031-4/+4
| | | | powershell instead of cmd, win2016 instead of 2012r2
* Revert "Meson: Override gobject-introspection-1.0 dependency"Emmanuele Bassi2020-04-241-2/+2
| | | | | | This reverts commit d01a387475e2665275a6cd6b0059bf91121b8300. The nightly run time does not have Meson 0.54
* Meson: Override gobject-introspection-1.0 dependencyXavier Claessens2020-04-231-2/+2
| | | | | | | | | | | | | When gobject-introspection-1.0 pkg-config is not found on the system, Meson can fallback to configure g-i as subproject and needs a dependency object to replace the pc file. The dependency file needs to ensure that typelibs are created before compiling any other gir and provide the girdir for files within build directory. It also need to provide glib dependencies required to compile girs. Bump Meson version to 0.54.0 to use meson.override_dependency().
* CI: add a job that builds glib as a subprojectChristoph Reiter2019-11-141-0/+20
| | | | | | | In our case we have to do various special things in case glib isn't available through pkg-config and not all tests are run. Add a CI job that tests this case so we don't regress.
* build: require meson 0.50.1Christoph Reiter2019-11-081-1/+1
| | | | See !186
* meson: change "doctool" from a boolean to a feature optionChristoph Reiter2019-09-301-2/+2
| | | | | | | Similar to !180 this should prevent devs from not running all tests by accident. This also adds some checks for the required doctool dependencies, mako and markdown.
* meson: change "cairo" from a boolean to a feature optionChristoph Reiter2019-09-281-2/+2
| | | | | | | | | We require cairo only to run all tests and thus default it to false. This usually results in developers not using it when working on changes and tests depending on cairo then failing in CI. This changes it to a feature option that defaults to auto, so that devs that have cairo headers installed will automatically use it.
* ci: test with Python 3.5Christoph Reiter2019-03-151-1/+23
|
* Drop autotools build systemChristoph Reiter2019-03-111-40/+0
|
* meson: use underscore as a separator in build optionsChristoph Reiter2019-01-071-1/+1
| | | | This is what https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting suggests.
* meson: disable doctool by defaultChristoph Reiter2019-01-031-1/+1
| | | | To unbreak continuous
* ci: update meson to 0.49.0Christoph Reiter2019-01-021-1/+1
|
* meson: add default compiler warning flags and enable -Werror on CIChristoph Reiter2018-12-181-0/+1
| | | | | | | | This enables various compiler warnings project wide and disables the triggered ones for each library/executable. This should give us roughly the same behaviour as with autotools. Tested with gcc8 and clang7.
* ci: switch to a non-srcdir build with autotoolsChristoph Reiter2018-12-141-2/+7
| | | | It's easy to break non-srcdir builds so make sure we catch it in CI
* docs: Remove everything not related to libgirepository and restructure. ↵Christoph Reiter2018-12-141-1/+1
| | | | | | | | | | | | | Fixes #244 The gtk-doc docs were including some bits of overal g-i docs but mostly unfinished and outdated. We now have the general docs in sphinx so remove the duplication and make the gtk-docs just about the libgirepository API and nothing more. This also renames some titles and fixes some missing links in the struct hierarchy while at it.
* ci: build libgirepository docs and push to gitlab pages. Fixes #231Christoph Reiter2018-12-091-2/+19
|
* Creating gir for GIRepository requires girepository library.Tomasz Miąsko2018-12-091-1/+0
| | | | This should address flaky builds on vs2017-x64-meson.
* ci: Add a msys2 autotools jobChristoph Reiter2018-12-081-5/+21
| | | | | Getting rid of autotools wont be easy, so make sure we run all tests on Windows, not just the ones ported to meson.
* ci: Export test suite log on failure for autotoolsThibault Saunier2018-11-281-1/+1
|
* gitlab-ci: Use new docker imageTomasz Miąsko2018-11-231-1/+1
|
* Drop Python 2 support, require Python 3.4+Christoph Reiter2018-11-051-41/+1
| | | | | | glib did the same thing this cycle, see https://gitlab.gnome.org/GNOME/glib/merge_requests/196 for details
* gitlab-ci: allow failure for the msvc build for nowChristoph Reiter2018-11-041-0/+1
| | | | | It's broken again due to glib changes (maybe the __pragma() calls?). We still have the MinGW build using meson on Windows in the meantime.
* ci: force enable doctool and gtkdoc1.57.3Christoph Reiter2018-08-181-2/+2
| | | | | | | | doctool is an auto option and was disabled by the recent addition of a new dependency on the markdown Python module. Since we didn't have that in our testing docker image the tests were just skipped. This makes sure we error out if any dependencies are missing again.
* ci: always pass --count to flake8 to get more verbose outputChristoph Reiter2018-08-151-2/+2
| | | | | This prints the error count to stderr, and more importantly 0 when everything is OK so we know it did something.
* tests: depend on flake8 instead of including pep8/pyflakesChristoph Reiter2018-08-151-0/+10
| | | | | | | | | | | | | | | | g-i includes an old version of pep8 and pyflakes and uses that during "make check". It (1) doesn't catch all cases newer versions of pycodestyle/pyflakes catch and (2) doesn't test all Python files (3) doesn't work with meson. Instead of updating just remove them and depend on flake8 instead. To run the checks simply run flake8 in the root dir. This also makes it possible to run those checks when using meson and not autotools. To not get test suite failures on flake8 updates move the checks from "make check" to an extra "make check.quality" target.
* autotools: start using AX_COMPILER_FLAGS, enable -Werror on CIChristoph Reiter2018-07-291-0/+2
| | | | | | | | | * This adds a new dependency on autoconf-archive. * Pass WARN_CFLAGS/WARN_LDFLAGS/WARN_SCANNERFLAGS to everything we control the source of * Disables all warning flags which make the build error out for now, we'll re-enable them in followup commits. * AX_COMPILER_FLAGS is used with the release flag always on so we don't get -Werror by default.
* ci: switch back to the gitlab docker registryChristoph Reiter2018-07-231-1/+1
| | | | it seems to be working again now
* ci: add a msvc jobChristoph Reiter2018-07-221-0/+12
|
* ci: add a python 2 job using autotoolsChristoph Reiter2018-07-221-0/+16
|
* ci: add an autotools jobChristoph Reiter2018-07-221-5/+21
| | | | | | Switch to docker hub for now as the gitlab registry is broken. Disable the glib version check in configure.ac because we don't strictly need it for testing.
* meson: Add a "python" option to make the python to build against configurableChristoph Reiter2018-07-111-2/+21
| | | | | | | | This allows us to build with Python 2 and run tests with it. This requires the new "python" meson module which was added in 0.46.0 so bump the required meson version (glib needs a newer one anyway). Also fixes a small test error under Python 2.
* CI: use ccacheChristoph Reiter2018-06-211-0/+7
|
* ci: add a MSYS2 32bit jobChristoph Reiter2018-06-181-0/+16
|
* Update the CI imageEmmanuele Bassi2018-05-071-4/+3
| | | | | | We should use the GitLab registry, to allow everyone with the appropriate credentials for gitlab.gnome.org to push images for CI.
* ci: Only run the gobject-introspection test suitewip/ciEmmanuele Bassi2018-03-101-1/+1
| | | | | We don't need to run the GLib test suite, in case we're building GLib as a subproject.
* ci: Disable -WerrorEmmanuele Bassi2018-03-101-1/+1
| | | | We're going to need some more iterations before we can re-enable it.
* Add CI environment for gobject-introspectionEmmanuele Bassi2018-03-101-0/+19
Based on the GLib and GTK equivalent CI environment, with a Docker container used to run the build.