2017-12-30 21:01:29 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: php
|
|
|
|
|
2018-01-10 22:23:45 +01:00
|
|
|
php:
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
|
2017-12-30 21:01:29 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-01-10 22:23:45 +01:00
|
|
|
- .Build/vendor
|
2017-12-30 21:01:29 +01:00
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2018-01-10 22:23:45 +01:00
|
|
|
before_install:
|
|
|
|
- phpenv config-rm xdebug.ini
|
2017-12-30 21:01:29 +01:00
|
|
|
|
|
|
|
install:
|
2018-01-10 22:23:45 +01:00
|
|
|
- composer install
|
2017-12-30 21:01:29 +01:00
|
|
|
|
|
|
|
script:
|
2018-01-13 00:26:51 +01:00
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Validating the composer.json";
|
|
|
|
composer validate --no-check-all --no-check-lock --strict;
|
|
|
|
|
|
|
|
- >
|
|
|
|
echo;
|
|
|
|
echo "Linting all PHP files";
|
|
|
|
find Classes/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l;
|