Permalink
Browse files

adding mysql

  • Loading branch information...
AchrafSoltani committed Feb 1, 2018
1 parent 3052ae6 commit acc3bd89e5e7ae7cb958ec9680a83706be91a16d
Showing with 13 additions and 1 deletion.
  1. +13 −1 bitbucket-pipelines.yml
View
@@ -6,11 +6,23 @@ pipelines:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip zlib1g-dev
- apt-get update && apt-get install -y unzip zlib1g-dev git curl libmcrypt-dev mysql-client
- docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql && docker-php-ext-install mcrypt
- docker-php-ext-install zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- php bin/console doctrine:database:create
- php bin/console doctrine:migrations:diff && php bin/console doctrine:migrations:migrate
- ./vendor/bin/simple-phpunit
services:
- mysql
definitions:
services:
mysql:
image: mysql
environment:
MYSQL_DATABASE: 'homestead'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'

0 comments on commit acc3bd8

Please sign in to comment.