mirror of
https://github.com/hassio-addons/repository.git
synced 2025-05-06 20:21:26 +00:00
✨ Adds Gitlab CI
This commit is contained in:
parent
0f8b6f6a08
commit
5bb3bfee30
1 changed files with 37 additions and 0 deletions
37
.gitlab-ci.yml
Normal file
37
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
image: docker:stable
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- linting
|
||||||
|
|
||||||
|
.linting: &linting
|
||||||
|
stage: linting
|
||||||
|
tags:
|
||||||
|
- linting
|
||||||
|
|
||||||
|
yamllint:
|
||||||
|
<<: *linting
|
||||||
|
image: sdesbure/yamllint
|
||||||
|
before_script:
|
||||||
|
- yamllint --version
|
||||||
|
script:
|
||||||
|
- yamllint .
|
||||||
|
|
||||||
|
jsonlint:
|
||||||
|
<<: *linting
|
||||||
|
image: sahsu/docker-jsonlint
|
||||||
|
before_script:
|
||||||
|
- jsonlint --version || true
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
for file in $(find . -type f -name "*.json"); do
|
||||||
|
if ! jsonlint -q $file; then
|
||||||
|
export FAILED=1
|
||||||
|
else
|
||||||
|
echo "$file OK"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ "${FAILED}" = "1" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue