[retro-gtk/header-fixes: 2/2] ci: Check that retro-gtk.h contains public headers
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/header-fixes: 2/2] ci: Check that retro-gtk.h contains public headers
- Date: Sun, 12 Jan 2020 08:40:13 +0000 (UTC)
commit a5d2856913ce1eaaeed177ada771cda524f336c4
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Jan 11 16:50:42 2020 +0100
ci: Check that retro-gtk.h contains public headers
This will check we don't accidentally forget to add public headers to
public retro-gtk.h.
.gitlab-ci.yml | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7cf1171..5222955 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,15 @@ api-visibility:
echo "Private headers shouldn't be included in public ones.";
exit 1;
fi
+ # Check that retro-gtk.h contains all the public headers.
+ - for header in $(ls retro-gtk | grep \.h$ | grep -v private | grep -v retro-gtk.h);
+ do
+ if ! grep -q "$header" retro-gtk/retro-gtk.h;
+ then
+ echo "The public header" $header "should be included in retro-gtk.h.";
+ exit 1;
+ fi;
+ done
variables:
BUNDLE: "retro-demo-samples-test-git.flatpak"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]