From a811273954fdaacd2f10759a60d22199f9da8866 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 20 Sep 2017 17:44:54 +0200 Subject: [PATCH] Cache the phpunit install between builds on CI --- .travis.yml | 6 ++++++ appveyor.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index ea5477487..420f20e25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,11 @@ sudo: false cache: directories: - $HOME/.composer/cache/files + - $HOME/symfony-bridge/.phpunit + +env: + global: + - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" matrix: fast_finish: true @@ -16,6 +21,7 @@ before_install: install: - composer install + - ./vendor/bin/simple-phpunit install script: - ./vendor/bin/simple-phpunit diff --git a/appveyor.yml b/appveyor.yml index d76c5304e..07765c3c0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,12 +4,14 @@ clone_folder: c:\projects\symfony-demo cache: - '%LOCALAPPDATA%\Composer\files' + - '%LOCALAPPDATA%\SymfonyBridge\phpunit' - c:\projects\symfony-demo\composer.phar init: - SET PATH=c:\php;%PATH% - SET COMPOSER_NO_INTERACTION=1 - SET SYMFONY_DEPRECATIONS_HELPER=strict + - SET SYMFONY_PHPUNIT_DIR=%LOCALAPPDATA%\SymfonyBridge\phpunit - SET ANSICON=121x90 (121x90) - REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f @@ -45,6 +47,7 @@ install: - IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev) - php composer.phar update --no-progress --ansi - SET COMPOSER_ROOT_VERSION= + - vendor\bin\simple-phpunit install test_script: - cd c:\projects\symfony-demo