mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-28 21:22:11 +01:00
ci: Check that all installed files have a tag
This commit is contained in:
parent
a73ca336aa
commit
497f151810
25
.gitlab-ci/check-missing-install-tag.py
Executable file
25
.gitlab-ci/check-missing-install-tag.py
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
This script checks Meson configuration logs to verify no installed file is
|
||||||
|
missing installation tag.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
def main():
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument('builddir', type=Path)
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
logfile = args.builddir / 'meson-logs' / 'meson-log.txt'
|
||||||
|
with logfile.open(encoding='utf-8') as f:
|
||||||
|
if 'Failed to guess install tag' in f.read():
|
||||||
|
print(f'Some files are missing install_tag, see {logfile} for details.')
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
exit(main())
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
./.gitlab-ci/check-missing-install-tag.py _build
|
||||||
|
|
||||||
meson test \
|
meson test \
|
||||||
-C _build \
|
-C _build \
|
||||||
--timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
|
--timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
|
||||||
|
@ -14,6 +14,7 @@ set args=%args:~1%
|
|||||||
:: FIXME: make warnings fatal
|
:: FIXME: make warnings fatal
|
||||||
pip3 install --upgrade --user meson==0.60.3 || goto :error
|
pip3 install --upgrade --user meson==0.60.3 || goto :error
|
||||||
meson %args% _build || goto :error
|
meson %args% _build || goto :error
|
||||||
|
python .gitlab-ci/check-missing-install-tag.py _build || goto :error
|
||||||
ninja -C _build || goto :error
|
ninja -C _build || goto :error
|
||||||
|
|
||||||
:: FIXME: dont ignore test errors
|
:: FIXME: dont ignore test errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user