Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit bda9029

Browse files
committed
updated travis yml like zend-expressive-fastroute
1 parent f673639 commit bda9029

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cache:
1616
env:
1717
global:
1818
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
1920
- LEGACY_DEPS="phpunit/phpunit"
2021
- SITE_URL: https://zendframework.github.io/zend-mvc
2122
- GH_USER_NAME: "Matthew Weier O'Phinney"
@@ -69,12 +70,12 @@ before_install:
6970
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
7071

7172
install:
73+
- travis_retry composer install $COMPOSER_ARGS
74+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
7275
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
7376
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
74-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
75-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
76-
- travis_retry composer install $COMPOSER_ARGS
77-
- composer show --installed
77+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
78+
- composer show
7879

7980
script:
8081
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

0 commit comments

Comments
 (0)