Last active
June 18, 2018 01:24
-
-
Save mkorkmaz/c590e23949d6522f64a2dd40cf4ff823 to your computer and use it in GitHub Desktop.
Bitbucket pipeline example for PHP 7.1 + MongoDB + Memcached + Codeception
This file contains 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