Commit a0c2e4f3 authored by Tino Goratsch's avatar Tino Goratsch

run phpcs as part of the CI pipeline

parent 4e0914b8
......@@ -17,18 +17,25 @@ stages:
- test
- split
test:php:
test:php-unit:
stage: test
before_script:
- bash ./build/gitlab/before_script.sh > /dev/null
- bash ./build/gitlab/before_script_php.sh > /dev/null
- curl --silent --show-error https://getcomposer.org/installer | php
- php composer.phar global require hirak/prestissimo
script:
- php composer.phar install -n -o
- php ./vendor/bin/phpunit -c ./tests/phpunit.dist.xml --coverage-text --colors=never
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
test:phpcs:
stage: test
before_script:
- bash ./build/gitlab/before_script.sh > /dev/null
- bash ./build/gitlab/before_script_php.sh > /dev/null
script:
- php composer.phar install -n -o
- php ./vendor/bin/phpcs --dry-run --show-progress=estimating -v
split:
image: jderusse/gitsplit
stage: split
......
......@@ -12,3 +12,7 @@ pecl install xdebug
# Install required PHP extensions for the tests etc.
docker-php-ext-install zip
docker-php-ext-enable xdebug
# Install composer
curl --silent --show-error https://getcomposer.org/installer | php
php composer.phar global require hirak/prestissimo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment