-
-
Save qopqopqop/5ca8d19a0561824a56c9d4b49f66d00e to your computer and use it in GitHub Desktop.
Bitbucket pipeline example for PHP 7.1 + MongoDB + Memcached + Codeception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.1 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- composer | |
script: | |
- apt-get update && apt-get install -y memcached libmemcached-dev zlib1g-dev pkg-config libssl-dev openssl | |
- pecl install memcached | |
- docker-php-ext-enable memcached | |
- pecl install mongodb | |
- docker-php-ext-enable mongodb | |
- docker-php-ext-install zip | |
- docker-php-ext-enable zip | |
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
- composer install | |
- sleep 10 | |
- php -S 127.0.0.1:8080 -t public >/dev/null 2>&1 & | |
- vendor/bin/codecept run acceptance | |
services: | |
- mongo | |
definitions: | |
services: | |
mongo: | |
image: mongo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment