From 8dda0edb12d5ced0dd8a6b5d367481b2679e34b8 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 9 Nov 2017 11:06:13 +0100 Subject: [PATCH] EZP-28161: [Travis] Enabled CS testing by php-cs-fixer --- .travis.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2ee87fe --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: php + +php: + - 7.1 + +# test only master and stable branches (+ Pull requests) +branches: + only: + - master + - /^\d.\d+$/ + +install: + # Disable XDebug for better performance + - phpenv config-rm xdebug.ini + # Avoid memory issues on composer install + - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini + # Get latest composer build + - travis_retry composer selfupdate + # Install packages + - travis_retry composer install --prefer-dist --no-interaction + +script: + - vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating + +notifications: + email: false