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 <>
parent 2ae93654
......@@ -22,8 +22,8 @@ before_script:
ninja -C _build
image: debian:buster
stage: build
before_script: []
- lint/
# 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");
echo "Private headers shouldn't be included in public ones."
exit 1
# 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);
if ! grep -q "$(basename $header)" src/handy.h;
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