Skip to content

Commit 923875e

Browse files
committed
travis ci pecl only php 7, edit install lines
1 parent eff0fef commit 923875e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ before_install:
129129
install: travis_retry composer install --prefer-dist --no-interaction --no-suggest
130130

131131
before_script:
132-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then printf "yes\n" | pecl install redis; fi
133-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then printf "yes\n" | pecl install redis; fi
134-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then printf "yes\n" | pecl install redis; fi
135-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then printf "yes\n" | pecl install redis; fi
136-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then printf "yes\n" | pecl install redis; fi
132+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then pecl install -f redis; fi
133+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then pecl install -f redis; fi
134+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then pecl install -f redis; fi
135+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then pecl install -f redis; fi
136+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then pecl install -f redis; fi
137137
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
138138
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
139139
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`

0 commit comments

Comments
 (0)