Skip to content

Commit d463d83

Browse files
committed
Changed TravisCI: Added json & yaml linting to build
1 parent 5077e32 commit d463d83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,19 @@ before_install:
2525
- npm set progress false
2626

2727
install:
28+
- pip install yamllint
2829
- if ! shellcheck --version ; then
2930
curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;
3031
fi
3132
- shellcheck --version
3233
- npm install -g yarn
34+
- npm install -g jsonlint
3335

3436
script:
37+
- find . -type f -name "*.yml" -print0 | xargs -0 -n1 yamllint
38+
- find . -type f -name "*.json" -print0 | xargs -0 -n1 jsonlint -c -q
3539
- gpg --verify ./bin/install.sh.sig
3640
- shellcheck ./bin/install.sh
37-
- composer self-update || true
3841
- composer validate
3942
- composer install --no-progress --no-suggest
4043
- yarn install --no-progress

0 commit comments

Comments
 (0)