From 606f187950ad6d079d9bf2ad4c542b9c31355873 Mon Sep 17 00:00:00 2001 From: Bertrand Dunogier Date: Mon, 18 Nov 2019 01:31:02 +0100 Subject: [PATCH] Added .travis.yml --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e0d81b4..f6f8902 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,21 +2,29 @@ language: php php: - 7.1 + - 7.3 branches: only: - master - dev + - /^\d.\d+$/ + +cache: + directories: + - $HOME/.composer/cache/files env: matrix: - TARGET="phpspec" + - TARGET="codestyle" before_script: - COMPOSER_MEMORY_LIMIT=-1 composer install script: - - if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run -n; fi + - if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run --format=pretty; fi + - if [ "$TARGET" == "codestyle" ] ; then ./vendor/bin/php-cs-fixer fix --dry-run -v --show-progress=estimating; fi notification: email: false