2018-06-22 16:39:44 +02:00
|
|
|
image: registry.gitlab.gnome.org/gnome/glib/master:v4
|
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-05-26 20:17:15 +02:00
|
|
|
variables:
|
|
|
|
MESON_TEST_TIMEOUT_MULTIPLIER: 2
|
|
|
|
|
2018-04-26 11:05:45 +02:00
|
|
|
fedora-meson-x86_64:
|
2018-02-18 15:59:29 +01:00
|
|
|
stage: build
|
2018-06-05 19:39:26 +02:00
|
|
|
except:
|
|
|
|
- tags
|
2018-04-27 17:04:52 +02:00
|
|
|
variables:
|
2018-06-05 19:58:48 +02:00
|
|
|
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
2018-02-18 15:59:29 +01:00
|
|
|
script:
|
2018-06-07 17:23:17 +02:00
|
|
|
- meson --buildtype debug --werror -Dsystemtap=true -Ddtrace=true -Dfam=true _build .
|
2018-06-05 19:58:48 +02:00
|
|
|
- ninja -C _build
|
|
|
|
- meson test -C _build --timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER}
|
2018-04-27 17:04:52 +02:00
|
|
|
- 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
|
|
|
artifacts:
|
2018-05-29 11:54:29 +02:00
|
|
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2018-05-29 11:53:41 +02:00
|
|
|
when: always
|
2018-02-18 15:59:29 +01:00
|
|
|
paths:
|
2018-06-05 20:01:53 +02:00
|
|
|
- "_build/meson-logs"
|
|
|
|
- "_coverage"
|
2018-02-18 15:59:29 +01:00
|
|
|
|
2018-06-22 16:39:44 +02:00
|
|
|
fedora-meson-android_api21_arm64:
|
2018-05-20 06:14:56 +02:00
|
|
|
stage: build
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
script:
|
|
|
|
# FIXME: add --werror
|
2018-06-22 16:39:44 +02:00
|
|
|
- meson --cross-file=/opt/cross_file_android_api21_arm64.txt -Diconv=gnu -Dinternal_pcre=true --buildtype debug _build
|
2018-05-20 06:14:56 +02:00
|
|
|
- ninja -C _build
|
|
|
|
artifacts:
|
2018-06-05 20:01:53 +02:00
|
|
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
2018-05-20 06:14:56 +02:00
|
|
|
paths:
|
2018-06-05 20:01:53 +02:00
|
|
|
- "_build/meson-logs"
|
2018-05-20 06:14:56 +02:00
|
|
|
|
2018-05-20 21:17:48 +02:00
|
|
|
fedora-meson-mingw64:
|
|
|
|
stage: build
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
script:
|
|
|
|
# FIXME: Add --werror
|
|
|
|
- meson --cross-file=/opt/cross_file_mingw64.txt --buildtype debug _build
|
|
|
|
- ninja -C _build
|
|
|
|
artifacts:
|
2018-06-05 20:01:53 +02:00
|
|
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
2018-05-20 21:17:48 +02:00
|
|
|
paths:
|
2018-06-05 20:01:53 +02:00
|
|
|
- "_build/meson-logs"
|
2018-05-20 21:17:48 +02:00
|
|
|
|
2018-02-22 19:37:16 +01:00
|
|
|
msys2-mingw32:
|
|
|
|
stage: build
|
2018-06-05 19:39:26 +02:00
|
|
|
except:
|
|
|
|
- tags
|
2018-02-22 19:37:16 +01:00
|
|
|
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:
|
2018-05-29 11:54:29 +02:00
|
|
|
name: "glib-%CI_JOB_NAME%-%CI_COMMIT_REF_NAME%"
|
2018-05-28 14:11:22 +02:00
|
|
|
when: always
|
2018-04-27 17:04:52 +02:00
|
|
|
paths:
|
2018-05-28 14:11:22 +02:00
|
|
|
- _build/meson-logs
|
2018-04-27 17:04:52 +02:00
|
|
|
- _coverage/
|
|
|
|
|
2018-05-24 19:18:25 +02:00
|
|
|
vs2017-x64:
|
|
|
|
stage: build
|
2018-06-05 19:39:26 +02:00
|
|
|
except:
|
|
|
|
- tags
|
2018-05-24 19:18:25 +02:00
|
|
|
tags:
|
|
|
|
- win32
|
|
|
|
script:
|
|
|
|
- .gitlab-ci/test-msvc.bat
|
|
|
|
artifacts:
|
2018-05-29 11:54:29 +02:00
|
|
|
name: "glib-%CI_JOB_NAME%-%CI_COMMIT_REF_NAME%"
|
2018-05-24 19:18:25 +02:00
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs
|
|
|
|
|
2018-04-27 17:04:52 +02:00
|
|
|
coverage:
|
|
|
|
stage: coverage
|
|
|
|
artifacts:
|
2018-05-29 11:54:29 +02:00
|
|
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2018-04-27 17:04:52 +02:00
|
|
|
paths:
|
|
|
|
- _coverage/
|
|
|
|
script:
|
|
|
|
- bash -x ./.gitlab-ci/coverage-docker.sh
|
2018-05-25 00:43:03 +02:00
|
|
|
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
2018-04-27 17:04:52 +02:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
2018-06-05 19:39:26 +02:00
|
|
|
only:
|
|
|
|
- master
|
2018-04-27 17:04:52 +02:00
|
|
|
script:
|
|
|
|
- mv _coverage/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
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"
|