Skip to content

Commit

Permalink
Merge pull request #41 from weirdan/cache-composer-cache
Browse files Browse the repository at this point in the history
Added composer cache dir to travis cache folders
  • Loading branch information
weirdan authored Dec 28, 2019
2 parents ebacec4 + 26978c4 commit 1cf7d64
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ before_install:
- phpenv config-rm xdebug.ini || true

install:
- if [[ "$DEPS" = 'high' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS update; fi
- if [[ "$DEPS" = 'low' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS --prefer-lowest --prefer-stable update; fi
- if [[ "$DEPS" = 'stable' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS --prefer-stable update; fi
- if [[ "$DEPS" = 'high' ]]; then travis_retry composer --no-interaction --no-suggest update; fi
- if [[ "$DEPS" = 'low' ]]; then travis_retry composer --no-interaction --no-suggest --prefer-lowest --prefer-stable update; fi
- if [[ "$DEPS" = 'stable' ]]; then travis_retry composer --no-interaction --no-suggest --prefer-stable update; fi

script: composer check

env:
matrix:
- DEPS="low"
- DEPS="high"
- DEPS="stable"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-suggest"
- DEPS=low
- DEPS=high
- DEPS=stable
cache:
directories:
- $(composer config cache-files-dir)

0 comments on commit 1cf7d64

Please sign in to comment.