Require phpunit-mock-objects, use caret versions

This commit is contained in:
Steve Boyd 2020-06-18 14:03:12 +12:00
parent 6da1beb717
commit 2bdd3eacdd

View File

@ -25,9 +25,10 @@ before_script:
- echo 'memory_limit=2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - echo 'memory_limit=2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer validate - composer validate
- composer require symbiote/silverstripe-queuedjobs:^4.0 --no-update - composer require symbiote/silverstripe-queuedjobs:^4 --no-update
- if [[ $SUBSITES ]]; then composer require silverstripe/subsites:2.3.x-dev --no-update; fi - if [[ $SUBSITES ]]; then composer require silverstripe/subsites:^2 --no-update; fi
- if [[ $DB == "PGSQL" ]]; then composer require silverstripe/postgresql:2.3.x-dev --no-update; fi - if [[ $DB == "PGSQL" ]]; then composer require silverstripe/postgresql:^2 --no-update; fi
- composer require --no-update sminnee/phpunit-mock-objects:^3
- composer require silverstripe/installer "$INSTALLER_VERSION" --no-update - composer require silverstripe/installer "$INSTALLER_VERSION" --no-update
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile