From 8daed2484db95ba38f41135fc2a67f01a5db981b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 31 Jan 2018 21:50:26 +0100 Subject: [PATCH] Enhancement: Cache dependencies installed with composer on Travis (#215) --- .travis.yml | 4 ++++ composer.json | 1 + 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7a0f3af..fd84163 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,10 @@ matrix: - _OSX=10.11 - _PHP: php71 +cache: + directories: + - $HOME/.composer/cache + before_install: - if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/prepare_osx_env.sh ; fi - if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi diff --git a/composer.json b/composer.json index acb34dd..865d4b5 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "symplify/easy-coding-standard": "^3.1" }, "config": { + "preferred-install": "dist", "sort-packages": true }, "autoload": {