Giter Site home page Giter Site logo

docker-php-ci's Introduction

#PHP CI test environment with Docker

This project creates a local test environment to test your code against multiple PHP version. Supports PHPUnit and Behat with Selenium (test example files are included), but can support easily other test tools.

##Requirements

##Installation

  1. Checkout the project.
  2. Run composer install.
  3. Edit the docker/shared.sh file if you want to add additional PHP extension your project requires.
  4. Edit the bin/test.sh file inserting your own test procedure.

Note: For Behat, Mink and Selenium, remember to add wd_host: selenium:4444 to your Behat configuration file (see behat.yaml.dist for an example).

##Usage

  • ./bin/app selenium to run a Selenium standalone Server, this commands should be run only once, then stop and start the server with docker selenium stop and docker selenium start
  • ./bin/app init to share the docker/shared.sh file inside all the Docker PHP containers
  • ./bin/app build to build all the Docker PHP images
  • ./bin/app test to run the test

Note: You don't need to run app init and app build every time, but only at the beginning of the project and everytime you change the docker/shared.sh file.

docker-php-ci's People

Contributors

niklongstone avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

lcube45

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.