language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

sudo: false

install:
  - travis_retry composer install

cache:
  directories:
    - $HOME/.composer/cache

language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

sudo: false

install:
  - travis_retry composer install

cache:
  directories:
    - $HOME/.composer/cache/files

Improve the composer caching on Travis
Improve the composer caching on Travis

Persisting the cache of downloading archives is good. But persisting the cache of repository metadata downloads is not a PAckagist metadata are likely to be updated between each build, which would require Travis to update its cache all the time.