2018-05-01 08:55:29 +02:00
|
|
|
image: registry.gitlab.gnome.org/gnome/glib/master:v1
|
2018-02-18 15:59:29 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2018-04-27 17:04:52 +02:00
|
|
|
- coverage
|
|
|
|
- deploy
|
2018-02-18 15:59:29 +01:00
|
|
|
|
2018-02-22 19:37:16 +01:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- _ccache/
|
|
|
|
|
2018-04-26 11:05:45 +02:00
|
|
|
fedora-meson-x86_64:
|
2018-02-18 15:59:29 +01:00
|
|
|
stage: build
|
2018-04-27 17:04:52 +02:00
|
|
|
variables:
|
|
|
|
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
2018-02-18 15:59:29 +01:00
|
|
|
script:
|
|
|
|
- meson --prefix /usr --libdir /usr/lib64 --buildtype debug --werror -Dsystemtap=true -Ddtrace=true _build .
|
|
|
|
- cd _build
|
|
|
|
- ninja
|
2018-05-02 13:54:49 +02:00
|
|
|
- meson test --timeout-multiplier 2
|
2018-04-27 17:04:52 +02:00
|
|
|
- cd ..
|
|
|
|
- mkdir -p _coverage
|
|
|
|
- lcov --rc lcov_branch_coverage=1 --directory . --capture --no-external --output-file "_coverage/${CI_JOB_NAME}.lcov"
|
2018-02-18 15:59:29 +01:00
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
name: "glib-_${CI_COMMIT_REF_NAME}"
|
|
|
|
paths:
|
|
|
|
- "${CI_PROJECT_DIR}/_build/meson-logs"
|
2018-04-27 17:04:52 +02:00
|
|
|
- "${CI_PROJECT_DIR}/_coverage"
|
2018-02-18 15:59:29 +01:00
|
|
|
|
2018-02-22 19:37:16 +01:00
|
|
|
msys2-mingw32:
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- win32
|
|
|
|
variables:
|
|
|
|
MSYSTEM: "MINGW32"
|
|
|
|
CHERE_INVOKING: "yes"
|
|
|
|
script:
|
|
|
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
|
|
|
|
- C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
|
2018-04-27 17:04:52 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _coverage/
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
stage: coverage
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _coverage/
|
|
|
|
script:
|
|
|
|
- bash -x ./.gitlab-ci/coverage-docker.sh
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- mv _coverage/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|
2018-02-22 19:37:16 +01:00
|
|
|
|
2018-02-18 15:59:29 +01:00
|
|
|
dist-job:
|
|
|
|
stage: build
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
script:
|
|
|
|
- meson --prefix /usr --libdir /usr/lib64 --buildtype release -Dgtk_doc=true -Dman=true _build .
|
|
|
|
- cd _build
|
|
|
|
- ninja dist
|
|
|
|
- ninja glib-doc
|
|
|
|
- tar -c -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/glib html
|
|
|
|
- tar -c -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gobject html
|
|
|
|
- tar -c -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C docs/reference/gio html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "${CI_PROJECT_DIR}/_build/glib-docs.tar.xz"
|
|
|
|
- "${CI_PROJECT_DIR}/_build/gobject-docs.tar.xz"
|
|
|
|
- "${CI_PROJECT_DIR}/_build/gio-docs.tar.xz"
|
|
|
|
- "${CI_PROJECT_DIR}/_build/meson-dist/glib-*.tar.xz"
|