mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
CI: Show execution environment before we start
This will help to debug CI issues that are related to us running in a container that might have unusual capabilities, mount points, filesystems etc., such as (probably) #2027, #2028, #2029. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
8f16a89817
commit
dff2e3b4c7
@ -28,6 +28,7 @@ variables:
|
|||||||
.build:
|
.build:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
before_script:
|
before_script:
|
||||||
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
- cp -r $HOME/subprojects/* subprojects/
|
- cp -r $HOME/subprojects/* subprojects/
|
||||||
|
|
||||||
style-check-diff:
|
style-check-diff:
|
||||||
@ -278,6 +279,7 @@ msys2-mingw32:
|
|||||||
CHERE_INVOKING: "yes"
|
CHERE_INVOKING: "yes"
|
||||||
script:
|
script:
|
||||||
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
|
- 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"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
@ -325,6 +327,8 @@ freebsd-11-x86_64:
|
|||||||
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
||||||
# FreeBSD doesn't have C.UTF-8 locale.
|
# FreeBSD doesn't have C.UTF-8 locale.
|
||||||
LANG: en_US.UTF-8
|
LANG: en_US.UTF-8
|
||||||
|
before_script:
|
||||||
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
script:
|
script:
|
||||||
# We cannot use -Wl,--no-undefined because GLib uses 'environ' variable.
|
# We cannot use -Wl,--no-undefined because GLib uses 'environ' variable.
|
||||||
# FreeBSD iconv doesn't handle transliteration, so we use (external) GNU libiconv here.
|
# FreeBSD iconv doesn't handle transliteration, so we use (external) GNU libiconv here.
|
||||||
@ -354,6 +358,8 @@ freebsd-12-x86_64:
|
|||||||
CPPFLAGS: -I/usr/local/include
|
CPPFLAGS: -I/usr/local/include
|
||||||
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
LDFLAGS: -L/usr/local/lib -Wl,--disable-new-dtags
|
||||||
LANG: en_US.UTF-8
|
LANG: en_US.UTF-8
|
||||||
|
before_script:
|
||||||
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
script:
|
script:
|
||||||
- meson ${MESON_COMMON_OPTIONS} -Db_lundef=false -Diconv=external -Dxattr=false _build
|
- meson ${MESON_COMMON_OPTIONS} -Db_lundef=false -Diconv=external -Dxattr=false _build
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
@ -379,6 +385,7 @@ macos:
|
|||||||
tags:
|
tags:
|
||||||
- macos
|
- macos
|
||||||
before_script:
|
before_script:
|
||||||
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
- pip3 install --user meson==0.49.2
|
- pip3 install --user meson==0.49.2
|
||||||
- pip3 install --user ninja
|
- pip3 install --user ninja
|
||||||
- export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
|
- export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
|
||||||
@ -414,6 +421,8 @@ coverage:
|
|||||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||||
paths:
|
paths:
|
||||||
- _coverage/
|
- _coverage/
|
||||||
|
before_script:
|
||||||
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
script:
|
script:
|
||||||
- bash -x ./.gitlab-ci/coverage-docker.sh
|
- bash -x ./.gitlab-ci/coverage-docker.sh
|
||||||
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
||||||
|
11
.gitlab-ci/show-execution-environment.sh
Executable file
11
.gitlab-ci/show-execution-environment.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux -o pipefail
|
||||||
|
|
||||||
|
id || :
|
||||||
|
capsh --print || :
|
||||||
|
env -0 | sort -z | perl -pe 's/\0/\n/g' || :
|
||||||
|
setpriv --dump || :
|
||||||
|
ulimit -a || :
|
||||||
|
cat /proc/self/status || :
|
||||||
|
cat /proc/self/mountinfo || :
|
Loading…
Reference in New Issue
Block a user