Select Git revision
input-date-picker.php
-
Marcin Kolanko authoredMarcin Kolanko authored
lint.yml 677 B
.lint: &lint-tmpl
needs:
- prepare prefixed vendor
stage: tests
before_script:
- composer config gitlab-token.gitlab.wpdesk.dev gitlab-ci-token ${CI_JOB_TOKEN}
- composer install --no-dev
- rm auth.json
script:
- |
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
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:8.2
lint:7.4:
extends: .lint
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:7.4