Skip to content

Commit 46cdf3a

Browse files
committed
fixing travis pecl
1 parent 923875e commit 46cdf3a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,12 @@ before_install:
125125
- if [ -n "$LUMEN_VERSION" ]; then composer remove --dev --no-update "laravel/framework"; fi
126126
- if [ -n "$LUMEN_VERSION" ]; then composer require --no-update "laravel/lumen-framework:$LUMEN_VERSION"; fi
127127
- if [ -z "$HORIZON" ]; then composer remove --dev --no-update "laravel/horizon"; fi
128+
- phpenv config-rm xdebug.ini
129+
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
128130

129131
install: travis_retry composer install --prefer-dist --no-interaction --no-suggest
130132

131133
before_script:
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
137-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
138-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
139-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
140-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
141-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then echo "extension=redis.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"; fi`
142134
- SUPERVISE=no travis_retry ./start-cluster.sh || { cat ./cluster/*.log; false; }
143135

144136
script: vendor/bin/phpunit --exclude-group ${LUMEN_VERSION:+laravel-only},${HORIZON:-horizon}

0 commit comments

Comments
 (0)