Commit b9145df8 authored by Klaus Purer's avatar Klaus Purer
Browse files

tests(travis): Enable vendor folder caching and composer update

parent 671b5782
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3,10 +3,12 @@ dist: trusty
language: php
sudo: false

# Cache composer downloads to speed up the composer install step.
# Cache composer vendor directories to speed up the composer install step.
cache:
  directories:
    - $HOME/.composer/cache
    - vendor
    - composer.lock

matrix:
  fast_finish: true
@@ -24,9 +26,10 @@ before_install:
  - phpenv config-rm xdebug.ini || echo 'No xdebug config.'

before_script:
  # We don't have a composer.lock file because we always want to test with
  # latest dependencies.
  # Run install in case the cached vendor directory is not present.
  - composer install
  # Always run tests with up to date dependencies.
  - composer update

script:
  - ./vendor/bin/phpunit