Skip to content

Instantly share code, notes, and snippets.

@qopqopqop
Forked from mkorkmaz/bitbucket-pipelines.yml
Created December 28, 2017 01:28
Show Gist options
  • Save qopqopqop/5ca8d19a0561824a56c9d4b49f66d00e to your computer and use it in GitHub Desktop.
Save qopqopqop/5ca8d19a0561824a56c9d4b49f66d00e 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