Skip to content

Commit 01df424

Browse files
committed
fix circleCi
1 parent a2bdc85 commit 01df424

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
executors:
44
php-executor:
55
docker:
6-
- image: cimg/php:<<parameters.php-version>>-node-browsers-redis
6+
- image: cimg/php:<<parameters.php-version>>-browsers
77
- image: redis:alpine
88
parameters:
99
php-version:
@@ -27,8 +27,11 @@ jobs:
2727
name: Install Redis Extension
2828
command: |
2929
sudo apt-get update
30-
sudo apt-get install -y php-redis
31-
echo "extension=redis.so" >> $(php --ini | grep "Loaded Configuration" | sed -E "s|.*:\s*||")
30+
sudo apt-get install -y php-dev php-pear
31+
sudo pecl install redis
32+
INI_FILE=$(php --ini | grep "Loaded Configuration" | sed -E "s|.*:\s*||")
33+
echo "extension=redis.so" | sudo tee -a $INI_FILE
34+
php -m | grep redis || (echo "Redis extension not loaded" && exit 1)
3235
#- run:
3336
# name: Update Composer
3437
# command: sudo composer self-update

0 commit comments

Comments
 (0)