Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

ClockwiseSoftware/php7-mysql-unit-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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:

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

About

Docker machine for testing with Pipelines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published