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

Commit a2d6faa

Browse files
committed
updated travis yml
1 parent 20eb387 commit a2d6faa

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,11 @@ before_install:
7070

7171
install:
7272
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
73-
- 'if [[ $DEPS == 'lowest' ]]; then
74-
travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS
75-
if [[ $DEPS == 'lowest' ]]; then
76-
--with-dependencies $LEGACY_DEPS
77-
fi;
78-
fi'
79-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 --with-dependencies $LEGACY_DEPS ; fi
73+
- if [[ $DEPS == 'lowest' ] && [ $TRAVIS_PHP_VERSION !~ ^5.6 ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
74+
- if [[ $DEPS == 'lowest' ] && [ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
75+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
8076
- if [[ $DEPS == 'locked' ]]; then travis_retry composer install $COMPOSER_ARGS ; fi
77+
- if [[ $DEPS == 'locked' ] && [ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer install $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
8178
- composer show --installed
8279

8380
script:

0 commit comments

Comments
 (0)