summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2023-04-21 14:25:42 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2023-04-21 14:31:04 +0200
commitc41bb32867673ac3dd91b5fe8c988c0e663f4182 (patch)
tree925630284f93de69a6f1824c5a660ec0e97dbda7
parent3594d9615b77669daf0f2d450ff3bcc2275ad499 (diff)
downloadglib-c41bb32867673ac3dd91b5fe8c988c0e663f4182.tar.gz
ci: Disable most tests except macos
-rw-r--r--.gitlab-ci.yml376
1 files changed, 0 insertions, 376 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 182b9c7a7..7d14dc617 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,4 @@
stages:
- - style-check
- build
- coverage
- analysis
@@ -49,121 +48,6 @@ variables:
- bash .gitlab-ci/show-execution-environment.sh
- cp -r $HOME/subprojects/* subprojects/
-style-check-advisory:
- extends: .only-default
- image: $DEBIAN_IMAGE
- stage: style-check
- allow_failure: true
- script:
- - .gitlab-ci/run-style-check-diff.sh
- - .gitlab-ci/run-check-todos.sh
-
-sh-and-py-check:
- extends: .only-default
- image: $DEBIAN_IMAGE
- stage: style-check
- allow_failure: false
- script:
- - .gitlab-ci/run-shellcheck.sh
- - .gitlab-ci/run-black.sh
- - .gitlab-ci/run-flake8.sh
- only:
- changes:
- - "**/*.py"
- - "**/*.sh"
-
-style-check-mandatory:
- extends: .only-default
- image: $DEBIAN_IMAGE
- stage: style-check
- allow_failure: false
- script:
- - .gitlab-ci/run-reuse.sh
- variables:
- # The submodules are needed for `reuse lint` to work properly
- GIT_SUBMODULE_STRATEGY: "normal"
-
-fedora-x86_64:
- extends:
- - .build-linux
- - .only-default
- image: $FEDORA_IMAGE
- stage: build
- needs: []
- variables:
- CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
- script:
- - meson ${MESON_COMMON_OPTIONS}
- --werror
- --default-library=both
- --prefix=$HOME/glib-installed
- --localstatedir=/var
- --libdir=lib
- -Dsystemtap=true
- -Ddtrace=true
- -Dinstalled_tests=true
- -Dgtk_doc=true
- _build
- - ninja -C _build
- - mkdir -p _coverage
- - lcov --config-file .lcovrc --directory _build --capture --initial --output-file "_coverage/${CI_JOB_NAME}-baseline.lcov"
- - .gitlab-ci/run-tests.sh
- - lcov --config-file .lcovrc --directory _build --capture --output-file "_coverage/${CI_JOB_NAME}.lcov"
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - "_build/config.h"
- - "_build/glib/glibconfig.h"
- - "_build/meson-logs"
- - "_build/docs/reference/glib/glib-undeclared.txt"
- - "_build/docs/reference/glib/glib-undocumented.txt"
- - "_build/docs/reference/glib/glib-unused.txt"
- - "_build/docs/reference/gobject/gobject-undeclared.txt"
- - "_build/docs/reference/gobject/gobject-undocumented.txt"
- - "_build/docs/reference/gobject/gobject-unused.txt"
- - "_build/docs/reference/gio/gio-undeclared.txt"
- - "_build/docs/reference/gio/gio-undocumented.txt"
- - "_build/docs/reference/gio/gio-unused.txt"
- - "_coverage"
-
-debian-stable-x86_64:
- extends:
- - .build-linux
- - .only-default
- image: $DEBIAN_IMAGE
- stage: build
- needs: []
- script:
- - meson ${MESON_COMMON_OPTIONS}
- --werror
- --default-library=both
- --prefix=$HOME/glib-installed
- --localstatedir=/var
- --libdir=lib
- -Dsystemtap=true
- -Ddtrace=true
- _build
- - ninja -C _build
- - .gitlab-ci/run-tests.sh
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - "_build/config.h"
- - "_build/glib/glibconfig.h"
- - "_build/meson-logs"
-
installed-tests:
extends:
- .build-linux
@@ -277,233 +161,6 @@ valgrind:
paths:
- "_build/meson-logs"
-cross-android_arm64:
- extends:
- - .cross-build-linux
- - .only-default
- image: $FEDORA_IMAGE
- script:
- # FIXME: add --werror
- - meson ${MESON_COMMON_OPTIONS} --cross-file=.gitlab-ci/cross_file_android_arm64_31.txt _build
- - ninja -C _build
-
-cross-mingw64:
- extends:
- - .cross-build-linux
- - .only-default
- image: $MINGW_IMAGE
- variables:
- PYTHONUTF8: "1"
- script:
- # FIXME: Add --werror
- - meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_mingw64.txt _build
- - ninja -C _build
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - _build/meson-logs
- - _build/glib/libglib-2.0-0.dll
- - _build/gio/libgio-2.0-0.dll
- - _build/gmodule/libgmodule-2.0-0.dll
- - _build/gthread/libgthread-2.0-0.dll
- - _build/gobject/libgobject-2.0-0.dll
-
-msys2-mingw32:
- extends: .only-default
- stage: build
- tags:
- - win32-ps
- needs: []
- variables:
- MSYSTEM: "MINGW32"
- CHERE_INVOKING: "yes"
- CFLAGS: -coverage -ftest-coverage -fprofile-arcs
- PYTHONUTF8: "1"
- # FIXME: For some reason enabling jit debugging "fixes" random python crashes
- # see https://github.com/msys2/MINGW-packages/issues/11864 and
- # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3280#note_1678973
- MSYS: "winjitdebug"
- script:
- - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
- - C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh
- - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - _build/meson-logs
- - _coverage/
-
-msys2-clang64:
- extends: .only-schedules
- stage: build
- tags:
- - win32-ps
- needs: []
- variables:
- MSYSTEM: "CLANG64"
- CHERE_INVOKING: "yes"
- PYTHONUTF8: "1"
- # FIXME: For some reason enabling jit debugging "fixes" random python crashes
- # see https://github.com/msys2/MINGW-packages/issues/11864 and
- # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3280#note_1678973
- MSYS: "winjitdebug"
- script:
- - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
- - C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh
- - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
- artifacts:
- reports:
- junit: "_build/meson-logs/testlog.junit.xml"
- name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - _build/meson-logs
-
-vs2017-x64:
- extends: .only-default
- stage: build
- tags:
- - win32-ps
- needs: []
- variables:
- PYTHONUTF8: "1"
- script:
- # FIXME: These should use --wrap-mode=nodownload but the Windows CI machines
- # aren’t currently set up for that.
- - .gitlab-ci/test-msvc.bat ${MESON_COMMON_OPTIONS}
- --wrap-mode=default
- --python.platlibdir=C:\Python37\site-packages
- --python.purelibdir=C:\Python37\site-packages
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - _build/meson-logs
- - _build/glib/libglib-2.0-0.dll
- - _build/gio/libgio-2.0-0.dll
- - _build/gmodule/libgmodule-2.0-0.dll
- - _build/gthread/libgthread-2.0-0.dll
- - _build/gobject/libgobject-2.0-0.dll
-
-vs2017-x64-static:
- extends: .only-default
- stage: build
- tags:
- - win32-ps
- needs: []
- variables:
- PYTHONUTF8: "1"
- script:
- # FIXME: These should use --wrap-mode=nodownload but the Windows CI machines
- # aren’t currently set up for that.
- - .gitlab-ci/test-msvc.bat ${MESON_COMMON_OPTIONS}
- --wrap-mode=default
- --default-library=static
- --python.platlibdir=C:\Python37\site-packages
- --python.purelibdir=C:\Python37\site-packages
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - _build/meson-logs
-
-freebsd-12-x86_64:
- # The FreeBSD 13 build is run on each commit, so the FreeBSD 12 build can be
- # run less regularly to save CI resources. The chance of a regression on
- # FreeBSD 12 and not FreeBSD 13 is tiny.
- extends: .only-schedules
- stage: build
- tags:
- # To run a FreeBSD builder, install gitlab-runner package and start both
- # gitlab-runner and dbus service because we need /var/lib/dbus/machine-id.
- # To compile GLib, you still have to install the following packages:
- # desktop-file-utils gettext libiconv meson pkgconf python3 shared-mime-info
- - freebsd-12
- needs: []
- variables:
- # CPPFLAGS is required because libintl doesn't use pkg-config.
- CPPFLAGS: -I/usr/local/include
- # FIXME: Workaround meson inability to set LD_LIBRARY_PATH.
- # https://github.com/mesonbuild/meson/issues/1383
- # https://github.com/mesonbuild/meson/issues/1635
- # https://github.com/mesonbuild/meson/issues/2881
- LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
- # FreeBSD supports C.UTF-8 locale since 12.1.
- LANG: C.UTF-8
- before_script:
- - bash .gitlab-ci/show-execution-environment.sh
- script:
- # We cannot use -Wl,--no-undefined because GLib uses 'environ' variable.
- # FreeBSD supports xattr, but its API is different from Linux xattr.
- # FIXME: extattr(2) support: https://gitlab.gnome.org/GNOME/glib/issues/1404
- # localstatedir is needed for access to /var/lib/dbus/machine-id
- - meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Dxattr=false _build
- - ninja -C _build
- - bash -x ./.gitlab-ci/run-tests.sh
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - "_build/config.h"
- - "_build/glib/glibconfig.h"
- - "_build/meson-logs"
-
-freebsd-13-x86_64:
- extends: .only-origin
- stage: build
- tags:
- - freebsd-13
- needs: []
- variables:
- CPPFLAGS: -I/usr/local/include
- LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
- LANG: C.UTF-8
- before_script:
- - bash .gitlab-ci/show-execution-environment.sh
- script:
- - meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Dxattr=false _build
- - ninja -C _build
- - bash -x ./.gitlab-ci/run-tests.sh
- artifacts:
- reports:
- junit:
- - _build/meson-logs/testlog.junit.xml
- - _build/meson-logs/testlog-*.junit.xml
- name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
- when: always
- expire_in: 1 week
- paths:
- - "_build/config.h"
- - "_build/glib/glibconfig.h"
- - "_build/meson-logs"
macos:
extends: .only-origin
@@ -547,28 +204,6 @@ macos:
- "_build/glib/glibconfig.h"
- "_build/meson-logs"
-coverage:
- extends: .only-default
- image: $FEDORA_IMAGE
- stage: coverage
- needs: ['fedora-x86_64', 'msys2-mingw32']
- artifacts:
- name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
- expire_in: 1 week
- expose_as: 'Coverage Report'
- paths:
- - _coverage/coverage/index.html
- - _coverage
- reports:
- coverage_report:
- coverage_format: cobertura
- path: _coverage/*-cobertura/cobertura-*.xml
- before_script:
- - bash .gitlab-ci/show-execution-environment.sh
- script:
- - bash -x ./.gitlab-ci/coverage-docker.sh
- coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
-
scan-build:
extends:
- .build-linux
@@ -629,17 +264,6 @@ coverity:
paths:
- "cov-int/build-log.txt"
-pages:
- stage: deploy
- only:
- - main
- needs: ['coverage', 'style-check-advisory']
- script:
- - mv _coverage/ public/
- artifacts:
- paths:
- - public
-
dist-job:
image: $FEDORA_IMAGE
stage: build