An open API service indexing awesome lists of open source software.

https://github.com/clockwisesoftware/php7-mysql-unit-docker

Docker machine for testing with Pipelines
https://github.com/clockwisesoftware/php7-mysql-unit-docker

php pipeline

Last synced: 10 months ago
JSON representation

Docker machine for testing with Pipelines

Awesome Lists containing this project

README

          

Container for using with Bitbucket Pipeline for testing Laravel project with PHPUnit
Using
`php:latest`
( php7 )

Include MySQL 5.5, composer
and extending PHP with modules:

`iconv, mcrypt, gd, pdo_mysql, pcntl, pdo_sqlite, zip, curl, bcmath, opcacheб, mbstring`

Example of `bitbucket-pipelines.yml`:
```yml
image: clockwise/php7-mysql-unit

pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- composer --version
# copy default enviroment file
- cp .env.example .env
# install composer vendor scripts
- composer install
- vendor/bin/phpunit --version
- mysql --version
# start mysl
- service mysql start
# create default databese for project
- mysql -u root -e "CREATE DATABASE kicker_chart"
# migrate
- php artisan migrate
# run tests
- vendor/bin/phpunit
```