Public | Automated Build

Last pushed: 3 months ago
Short Description
bitbucket-pipelines-php-mysql
Full Description

bitbucket-pipelines-php-mysql

Bitbucket Pipelines Docker image based on Alpine 3.4

No CMD as it is overriden by Pipelines

Packages installed

  • php5.6 MariaDB Composer

Sample bitbucket-pipelines.yml

image: mboretto/bitbucket-pipelines-php-mysql
pipelines:
  default:
    - step:
        script:
          - /usr/bin/mysqld --defaults-file=/etc/mysql/my.cnf --skip-grant-table &
          - composer install
          - vendor/bin/phpcs --report=full --extensions=php -np --standard=build/phpcs .
          - while [ ! -e /run/mysqld/mysqld.sock ]; do echo "=> Waiting for confirmation of MySQL service startup.."; inotifywait -e create -q /run/mysqld/; done                                                   
          - mysql -h localhost -u root -e "CREATE DATABASE test;"¬
          - vendor/bin/phpunit¬
Docker Pull Command
Owner
mboretto
Source Repository

Comments (0)