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
- Host: GitHub
- URL: https://github.com/clockwisesoftware/php7-mysql-unit-docker
- Owner: ClockwiseSoftware
- Archived: true
- Created: 2016-08-05T15:47:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T12:13:27.000Z (over 9 years ago)
- Last Synced: 2025-03-05T23:13:57.059Z (11 months ago)
- Topics: php, pipeline
- Homepage: https://hub.docker.com/r/clockwise/php7-mysql-unit-docker/
- Size: 2.93 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```