Commit 59249eee authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

ci: Speed up api-visibility job



Stop using find, and use default image and empty before_script.

Signed-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <alexm@gnome.org>
parent 2ae93654
......@@ -22,8 +22,8 @@ before_script:
ninja -C _build
api-visibility:
image: debian:buster
stage: build
before_script: []
script:
- lint/api-visibility.sh
......
#!/bin/bash
# Check that private headers aren't included in public ones.
if grep "include.*private.h" $(find src -name '*\.h' -not -regex '.*private.h');
if grep "include.*private.h" $(ls src/*.h | grep -v "private.h");
then
echo "Private headers shouldn't be included in public ones."
exit 1
fi
# Check that handy.h contains all the public headers.
for header in $(find src -name '*.h' -not -regex '.*private.h' -not -regex '.*/handy.h');
for header in $(ls src | grep "\.h$" | grep -v "private.h" | grep -v handy.h);
do
if ! grep -q "$(basename $header)" src/handy.h;
then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment