PHP extension and circle CI


I need to install a php5-imap extension for my project, and It’s impossible to do that with a pre dependency or something else…

I configure circleci to use the php 5.6.14 and it will install the php-imap for php 5.3 (default version)

I just added in my circle.yml
machine: php: version: 5.6.14 dependencies: pre: - sudo apt-get install php5-imap

How can I install the PHP imap extension & run the test without problem ?

Thanks by advance.


- "sudo apt-get install php5-imap || true" - "ln -s /usr/lib/php5/20121212/ ~/.phpenv/versions/$(phpenv global)/lib/php/extensions/no-debug-non-zts-20131226/" - "ln -s /usr/share/php5/imap/imap.ini ~/.phpenv/versions/$(phpenv global)/etc/conf.d/imap.ini"