Commit c43dd9a8 authored by Gaurav Agrawal's avatar Gaurav Agrawal 🌳 Committed by Alberto Fanjul
Browse files

ci: Add codestyle check

parent 926a3916
Pipeline #88368 failed
......@@ -3,12 +3,27 @@ stages:
- review
- deploy
fedora rawhide:
image: fedora:rawhide
script:
- dnf update -y --nogpgcheck
- dnf install -y git
variables:
BUNDLE: "diferencia-git.flatpak"
codestyle:
stage: check
script:
- dnf install -y uncrustify
- ./build-aux/uncrustify-check
flatpak:
stage: build
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: test
variables:
# Replace with your manifest path
......@@ -41,6 +56,7 @@ flatpak:
review:
stage: review
dependencies:
- flatpak
script:
......
#!/bin/bash
for FILE in $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
do
# Aligning prototypes is not working yet, so avoid headers
uncrustify -c "uncrustify.vala.cfg" --check "$FILE"
echo $CI_COMMIT_BEFORE_SHA
Please register or sign in to reply
done
Markdown is supported
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