[retro-gtk/header-fixes] ci: Check that private headers remain private
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/header-fixes] ci: Check that private headers remain private
- Date: Sat, 11 Jan 2020 14:49:38 +0000 (UTC)
commit 62df0f86c2ff29c70199b31d7a04c95549a2b6be
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Jan 11 15:41:32 2020 +0100
ci: Check that private headers remain private
This will check we don't accidentally add private headers to public
ones, exposing their API publicly.
.gitlab-ci.yml | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4462fbc..99f7f3b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,14 @@
stages:
+ - lint
- build
- test
- review
+api-visibility:
+ stage: lint
+ script:
+ - if grep "include.*private.h" $(ls retro-gtk/*.h | grep -v private); then echo "Private headers
shouldn't be included in public ones."; exit 1; fi
+
variables:
BUNDLE: "retro-demo-samples-test-git.flatpak"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]