Imported Upstream version 2.56.4
[platform/upstream/glib.git] / .gitlab-ci.yml
1 image: registry.gitlab.gnome.org/gnome/glib/2-58:v1
2
3 stages:
4   - build
5
6 build-job:
7   stage: build
8   script:
9     - meson --prefix /usr --libdir /usr/lib64 --buildtype debug --werror -Dsystemtap=true -Ddtrace=true _build .
10     - cd _build
11     - ninja
12     - meson test
13   except:
14     - tags
15   artifacts:
16     when: on_failure
17     name: "glib-_${CI_COMMIT_REF_NAME}"
18     paths:
19       - "${CI_PROJECT_DIR}/_build/meson-logs"
20
21 dist-job:
22   stage: build
23   only:
24     - tags
25   script:
26     - meson --prefix /usr --libdir /usr/lib64 --buildtype release -Dgtk_doc=true -Dman=true _build .
27     - cd _build
28     - ninja dist
29     - ninja glib-doc
30     - tar -c -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/glib html
31     - tar -c -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gobject html
32     - tar -c -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gio html
33   artifacts:
34     paths:
35       - "${CI_PROJECT_DIR}/_build/glib-docs.tar.xz"
36       - "${CI_PROJECT_DIR}/_build/gobject-docs.tar.xz"
37       - "${CI_PROJECT_DIR}/_build/gio-docs.tar.xz"
38       - "${CI_PROJECT_DIR}/_build/meson-dist/glib-*.tar.xz"