gitlab-ci: check all .yml files with yamllint
fdroidserver!721
This commit is contained in:
parent
e3a48e6dfd
commit
2346b1565b
|
@ -7,7 +7,7 @@ lint:
|
|||
- schedules
|
||||
- pipelines
|
||||
before_script:
|
||||
- printf "Package\x3a androguard fdroidserver python3-asn1crypto python3-ruamel.yaml\nPin\x3a release a=stretch-backports\nPin-Priority\x3a 500\n" > /etc/apt/preferences.d/debian-stretch-backports.pref
|
||||
- printf "Package\x3a androguard fdroidserver python3-asn1crypto python3-ruamel.yaml yamllint\nPin\x3a release a=stretch-backports\nPin-Priority\x3a 500\n" > /etc/apt/preferences.d/debian-stretch-backports.pref
|
||||
- echo "deb http://deb.debian.org/debian/ stretch-backports main" > /etc/apt/sources.list.d/backports.list
|
||||
- apt-get update
|
||||
- apt-get -qy dist-upgrade
|
||||
|
@ -33,7 +33,8 @@ lint:
|
|||
fi;
|
||||
done;
|
||||
set -x;
|
||||
apt-get install python3-colorama;
|
||||
apt-get install python3-colorama yamllint;
|
||||
for f in $files; do [[ $f == *'.yml' ]] && yamllint "$f"; done;
|
||||
./tools/check-git-repo-availability.py $files;
|
||||
./tools/audit-gradle.py $CHANGED;
|
||||
set +x;
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
extends: default
|
||||
|
||||
rules:
|
||||
braces:
|
||||
level: warning
|
||||
max-spaces-inside: 1
|
||||
brackets:
|
||||
level: warning
|
||||
max-spaces-inside: 1
|
||||
colons:
|
||||
level: warning
|
||||
commas:
|
||||
level: warning
|
||||
comments: disable
|
||||
comments-indentation: disable
|
||||
document-start: disable
|
||||
empty-lines: disable
|
||||
hyphens:
|
||||
level: warning
|
||||
indentation:
|
||||
level: warning
|
||||
indent-sequences: consistent
|
||||
line-length: disable
|
||||
new-line-at-end-of-file:
|
||||
level: warning
|
||||
trailing-spaces:
|
||||
level: warning
|
||||
truthy: disable
|
Loading…
Reference in New Issue