1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Generic Minteck GitLab CI/CD Checks # PHP applications image: php:zts-buster cache: paths: - vendor/ before_script: - apt-get update - apt-get install -y git test: script: - bash -c '[[ $(find . -name \*.php -exec php -l {} \; | grep -v "No syntax errors") ]] && exit 2 || exit 0'