Skip to content

GuessEver/docker-laravel-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-laravel-ci

Laravel docker container for ci test, it helps you to speed up test process

Usage

gitlab-ci

image: guessever/laravel-ci
services:
  - mysql:5.7

variables:
  MYSQL_DATABASE: database_name
  MYSQL_ROOT_PASSWORD: root

cache:
  paths:
  - vendor/

test-migration:
  script:
  # Install project dependencies.
  - composer install

  # Set up project configuration
  - cp .env.ci .env

  # Migrate to database
  - php artisan migrate

bitbucket-pipeline

image: guessever/laravel-ci

definitions:
  caches:
    bundler: vendor/
  services:
    mysql:
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: database_name
        MYSQL_ROOT_PASSWORD: root

caches:
  - bundler

pipelines:
  default:
    - step:
        name: test build
        services:
          - mysql
        script:
          # Install project dependencies.
          - composer install

          # Set up project configuration
          - cp .env.ci .env

          # Migrate to database
          - php artisan migrate

About

Laravel docker container for ci test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published