Skip to content
Snippets Groups Projects
Verified Commit f52dde36 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: further improvements to lint job

parent fabad4f6
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,15 @@
- composer install --no-dev
- rm auth.json
script:
- LINT=$(find . -name '*.php' -print0 |xargs -n1 -0 -P16 php -l)
- RESULT="$?"
- if [[ "$RESULT" -ne 0 ]]; then echo -e "$LINT" | grep -v 'No syntax errors'; fi
- |
LINT="$(find . -name '*.php' -print0 |xargs -n1 -0 -P16 php -l 2>&1)"; \
RESULT="$?"; \
if [[ "$RESULT" -ne 0 ]]; then
echo -e "$LINT" | grep -v 'No syntax errors';
exit 0;
else
exit "$RESULT"
fi
lint:8.2:
extends: .lint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment