Skip to content

Commit 7796548

Browse files
committed
Giving --prefer-lowest a try. v2 should test under 5.5, v3 under 5.6
1 parent 7756cc1 commit 7796548

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.travis.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ matrix:
1717
- php: 5.5
1818
env:
1919
- EXECUTE_CS_CHECK=true
20-
- php: 5.5
21-
env:
22-
- SERVICE_MANAGER_VERSION="^2.7.5"
20+
- SERVICE_MANAGER_V2=true
2321
- php: 5.6
2422
env:
2523
- EXECUTE_TEST_COVERALLS=true
26-
- php: 5.6
27-
env:
28-
- SERVICE_MANAGER_VERSION="^2.7.5"
2924
- php: 7
3025
- php: hhvm
3126
allow_failures:
@@ -41,14 +36,13 @@ before_install:
4136
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
4237

4338
install:
44-
- travis_retry composer install --no-interaction --ignore-platform-reqs
39+
- if [[ $SERVICE_MANAGER_V2 != 'true' ]]; then travis_retry composer install --no-interaction --ignore-platform-reqs ; fi
40+
- if [[ $SERVICE_MANAGER_V2 == 'true' ]]; then travis_retry composer update --no-interaction --ignore-platform-reqs --prefer-lowest ; fi
4541

4642
script:
4743
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
4844
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
4945
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
50-
- if [[ $SERVICE_MANAGER_VERSION != '' ]]; then composer require --no-update "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" ; fi
51-
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer require --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
5246

5347
after_script:
5448
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

0 commit comments

Comments
 (0)