2016-11-12 08:06:39 +02:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- "7.0"
|
2016-11-12 12:24:55 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
2016-11-12 08:06:39 +02:00
|
|
|
before_script:
|
2016-11-12 12:24:55 +02:00
|
|
|
- composer install --prefer-dist
|
|
|
|
- phpenv config-rm xdebug.ini
|
2016-11-12 08:06:39 +02:00
|
|
|
# install CodeSniffer for Kohana Coding Standards checks
|
|
|
|
# - git clone https://github.com/squizlabs/PHP_CodeSniffer.git php-codesniffer --depth=1
|
|
|
|
# Install Kohana Coding Standards
|
|
|
|
# - git clone https://github.com/kohana/coding-standards.git kohana-coding-standards --depth=1
|
|
|
|
# - cd php-codesniffer
|
|
|
|
# - scripts/phpcs --config-set installed_paths ../kohana-coding-standards
|
|
|
|
script:
|
2016-11-12 12:27:48 +02:00
|
|
|
- find application -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected' ; test $? -eq 1
|
2016-11-12 14:32:34 +02:00
|
|
|
# - vendor/bin/phpunit -c application/tests
|
2016-11-12 12:24:55 +02:00
|
|
|
# - php-codesniffer/scripts/phpcs -p -s -v -n --standard=Kohana --extensions=php application
|