Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Fixed Travis CI configuration
Browse files Browse the repository at this point in the history
Added "doctrine/instantiator" to legacy dependencies on PHP 7.0 locked
Version 1.1 requires PHP 7.1
  • Loading branch information
michalbundyra committed Oct 11, 2017
1 parent 6c7607c commit dc5e9f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="satooshi/php-coveralls"
- LEGACY_DEPS="phpunit/phpunit"

matrix:
include:
Expand All @@ -20,6 +19,7 @@ matrix:
- php: 5.6
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 5.6
env:
- DEPS=latest
Expand All @@ -29,6 +29,7 @@ matrix:
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="doctrine/instantiator"
- CS_CHECK=true
- TEST_COVERAGE=true
- php: 7
Expand Down Expand Up @@ -61,7 +62,7 @@ before_install:

install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 || $TRAVIS_PHP_VERSION =~ ^7.0 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
Expand Down

0 comments on commit dc5e9f9

Please sign in to comment.