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

Commit ae1aec7

Browse files
committed
Update travis configuration
- Remove 5.5 targets - Added "legacy deps" definition, and installation of these when using PHP 5.6 - Move coverage deps to an env variable
1 parent 7856f35 commit ae1aec7

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.travis.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ cache:
1515

1616
env:
1717
global:
18-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
20+
- LEGACY_DEPS="phpunit/phpunit"
1921
- LATEST_DEPS="zendframework/zend-mvc-plugin-flashmessenger zendframework/zend-mvc-i18n zendframework/zend-mvc-console"
2022
- SITE_URL=https://zendframework.github.io/zend-view
2123
- GH_USER_NAME="Matthew Weier O'Phinney"
@@ -25,16 +27,6 @@ env:
2527

2628
matrix:
2729
include:
28-
- php: 5.5
29-
env:
30-
- DEPS=lowest
31-
- php: 5.5
32-
env:
33-
- CS_CHECK=true
34-
- DEPS=locked
35-
- php: 5.5
36-
env:
37-
- DEPS=latest
3830
- php: 5.6
3931
env:
4032
- DEPS=lowest
@@ -78,10 +70,11 @@ before_install:
7870

7971
install:
8072
- travis_retry composer install $COMPOSER_ARGS
73+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
8174
- if [[ $DEPS == 'latest' ]]; then travis_retry composer require --dev --no-update $COMPOSER_ARGS $LATEST_DEPS ; fi
8275
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
8376
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
84-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
77+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
8578
- composer show --installed
8679

8780
script:

0 commit comments

Comments
 (0)