ci: Include pre-build style check
This commit is contained in:
12
tools/style-check_source
Executable file
12
tools/style-check_source
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Enforces style check for the project.
|
||||
THIS=$(realpath $0)
|
||||
TOOLS=$(dirname $THIS)
|
||||
cd $TOOLS/..
|
||||
|
||||
# The CI file seems to be touched regularly, and causing problems often,
|
||||
# unlike layout files.
|
||||
./tools/yamlfmt ./.gitlab-ci.yml $1
|
||||
Reference in New Issue
Block a user