The problem is that it seems it “crashes” right after install with the message that it can’t find the php.ini. But the image don’t use a php.ini file.
The error i get is.
install ok: channel://pecl.php.net/redis-5.1.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=redis.so" to php.ini
Error: Exited with code 141
Step failed
Error: runner failed (exited with 101)
Task failed
Error: task failed
I have tried
set the config path sudo pear config-set php_ini /usr/local/etc/php/php.ini-development
but it doesn’t seem to do anything.
Have tried to copy the files to php.ini and point to that, but no luck.
The problem is that pecl returns an exit code 141 which is taken as an invalid status code from circleci.
I was able to bypass the problem by appending || true to the command, and make sure no error is thrown. If the redis ext. is not properly installed, the next line would fail anyway.