All Projects → edbizarro → Gitlab Ci Pipeline Php

edbizarro / Gitlab Ci Pipeline Php

Licence: mit
☕️ Docker images for test PHP applications with Gitlab CI (or any other CI platform!)

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Gitlab Ci Pipeline Php

Lambdacd
a library to define a continuous delivery pipeline in code
Stars: ✭ 655 (+45.23%)
Mutual labels:  hacktoberfest, ci, continuous-integration, continuous-delivery, cd
Cimonitor
Displays CI statuses on a dashboard and triggers fun modules representing the status!
Stars: ✭ 34 (-92.46%)
Mutual labels:  hacktoberfest, ci, continuous-integration, cd, gitlab
Orkestra
Functional DevOps with Scala and Kubernetes
Stars: ✭ 102 (-77.38%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Pipelines
Build pipelines for automation, deployment, testing...
Stars: ✭ 105 (-76.72%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Gitlab Ci Local
Tired of pushing to test your .gitlab-ci.yml?
Stars: ✭ 134 (-70.29%)
Mutual labels:  ci, cd, gitlab-ci, gitlab
Abstruse
Abstruse is a free and open-source CI/CD platform that tests your models and code.
Stars: ✭ 704 (+56.1%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Gocd
Main repository for GoCD - Continuous Delivery server
Stars: ✭ 6,314 (+1300%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Lastbackend
System for containerized apps management. From build to scaling.
Stars: ✭ 1,536 (+240.58%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Flint
Fast and configurable filesystem (file and directory names) linter
Stars: ✭ 115 (-74.5%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (-51.88%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Rok8s Scripts
Opinionated scripts for managing application deployment lifecycle in Kubernetes
Stars: ✭ 248 (-45.01%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
www.go.cd
Github pages repo
Stars: ✭ 39 (-91.35%)
Mutual labels:  continuous-integration, continuous-delivery, ci, cd
Gitlab Ci Monitor
A simple dashboard for monitoring GitLab CI builds. Alpha version.
Stars: ✭ 152 (-66.3%)
Mutual labels:  continuous-integration, continuous-delivery, gitlab-ci, gitlab
Gitlab Ci Dashboard
📊 Dashboard for monitoring GitLab CI builds and pipelines for TV
Stars: ✭ 79 (-82.48%)
Mutual labels:  ci, cd, gitlab-ci, gitlab
Cml
♾️ CML - Continuous Machine Learning | CI/CD for ML
Stars: ✭ 2,843 (+530.38%)
Mutual labels:  gitlab-ci, continuous-integration, continuous-delivery, ci
Nevergreen
🐤 A build monitor with attitude
Stars: ✭ 170 (-62.31%)
Mutual labels:  ci, continuous-integration, continuous-delivery, cd
Concourse
Concourse is a container-based continuous thing-doer written in Go.
Stars: ✭ 6,070 (+1245.9%)
Mutual labels:  hacktoberfest, ci, continuous-integration, continuous-delivery
flagsmith-nodejs-client
Flagsmith Node JS Client. Flagsmith lets you manage features flags across web, mobile and server side applications. Get builds out faster. Control who has access to new features.
Stars: ✭ 13 (-97.12%)
Mutual labels:  continuous-integration, continuous-delivery, ci, cd
build-plugin-template
Template repository to create new Netlify Build plugins.
Stars: ✭ 26 (-94.24%)
Mutual labels:  continuous-integration, continuous-delivery, ci
Ccmenu
CCMenu is a Mac application to monitor continuous integration servers.
Stars: ✭ 306 (-32.15%)
Mutual labels:  ci, continuous-integration, continuous-delivery

Build and test PHP applications with Gitlab CI (or any other CI platform)

Docker images with everything you'll need to build and test PHP applications.

Logo


GitHub last commit Docker Pulls building status


Based on Official PHP images

PHP 8.0 available!

All versions come with Node 14, Composer and Yarn

PHP 7.0.x, 7.1.x and PHP 7.2.x are now deprecated and removed from this repo since they reach end of life. Your scripts will not stop working since the images are still available but they will not be receiving new builds from now on. For more information please visit https://www.php.net/supported-versions.php


Laravel projects

All images come with PHP (with all laravel required extensions), Composer (with hirak/prestissimo to speed up installs), Node and Yarn.

Everything you need to test Laravel projects :D

Laravel Dusk

To run Dusk tests we need chromium installed on the image, because of that we have a special tag for this case.

Check Dusk example for more details.


Gitlab pipeline examples

Laravel test examples

Simple .gitlab-ci.yml using mysql service

# Variables
variables:
  MYSQL_ROOT_PASSWORD: root
  MYSQL_USER: homestead
  MYSQL_PASSWORD: secret
  MYSQL_DATABASE: homestead
  DB_HOST: mysql

test:
  stage: test
  services:
    - mysql:5.7
  image: edbizarro/gitlab-ci-pipeline-php:8.0-alpine
  script:
    - yarn install --pure-lockfile
    - composer install --prefer-dist --no-ansi --no-interaction --no-progress
    - cp .env.example .env
    - php artisan key:generate
    - php artisan migrate:refresh --seed
    - ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr

Advanced .gitlab-ci.yml using mysql service, stages and cache

stages:
  - test
  - deploy

# Variables
variables:
  MYSQL_ROOT_PASSWORD: root
  MYSQL_USER: homestead
  MYSQL_PASSWORD: secret
  MYSQL_DATABASE: homestead
  DB_HOST: mysql

# Speed up builds
cache:
  key: $CI_BUILD_REF_NAME # changed to $CI_COMMIT_REF_NAME in Gitlab 9.x
  paths:
    - vendor
    - node_modules
    - public
    - .yarn


test:
  stage: test
  services:
    - mysql:5.7
  image: edbizarro/gitlab-ci-pipeline-php:8.0-alpine
  script:
    - yarn config set cache-folder .yarn
    - yarn install --pure-lockfile
    - composer install --prefer-dist --no-ansi --no-interaction --no-progress
    - cp .env.example .env
    - php artisan key:generate
    - php artisan migrate:refresh --seed
    - ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr
  artifacts:
    paths:
      - ./storage/logs # for debugging
    expire_in: 7 days
    when: always

deploy:
  stage: deploy
  image: edbizarro/gitlab-ci-pipeline-php:8.0-alpine
  script:
    - echo "Deploy all the things!"
  only:
    - master
  when: on_success

Laravel Dusk tests .gitlab-ci.yml using mysql service and cache

stages:
  - test

# Variables
variables:
  MYSQL_ROOT_PASSWORD: root
  MYSQL_USER: homestead
  MYSQL_PASSWORD: secret
  MYSQL_DATABASE: homestead
  DB_HOST: mysql

# Speed up builds
cache:
  key: $CI_BUILD_REF_NAME # changed to $CI_COMMIT_REF_NAME in Gitlab 9.x
  paths:
    - vendor
    - node_modules
    - public
    - .yarn


test:
  stage: test
  services:
    - mysql:5.7
  image: edbizarro/gitlab-ci-pipeline-php:8.0-chromium
  script:
    - yarn config set cache-folder .yarn
    - yarn install --pure-lockfile
    - composer install --prefer-dist --no-ansi --no-interaction --no-progress
    - cp .env.example .env
    - php artisan key:generate
    - php artisan migrate:refresh --seed
    - php artisan serve &
    - ./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &
    - sleep 5
    - php artisan dusk
  artifacts:
    paths:
      - ./storage/logs # for debugging
      - ./tests/Browser/screenshots # for Dusk screenshots
      - ./tests/Browser/console
    expire_in: 7 days
    when: always

Deploying Laravel applications with Gitlab

Recommended


Special thanks to Ambientum, an incredible Brazilian project, for the inspiration.

forthebadge forthebadge forthebadge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].