Skip to content

Instantly share code, notes, and snippets.

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