Coder Social home page Coder Social logo

westy92 / phpunit-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julienbreux/phpunit-docker

0.0 2.0 0.0 98 KB

:package: Docker image to use PHPUnit as CLI.

Home Page: https://hub.docker.com/r/phpunit/phpunit/

License: MIT License

Ruby 39.65% Makefile 35.96% Liquid 19.93% PHP 4.46%

phpunit-docker's Introduction

PHPUnit Docker Container.

Docker pull Docker pull Github issues License

Docker container to install and run PHPUnit.

Features

Installation / Usage

  1. Install the phpunit/phpunit container:

    $ docker pull phpunit/phpunit
  2. Create a phpunit.xml defining your tests suites.

... ```

  1. Run PHPUnit through the PHPUnit container:

    $ docker run -v $(pwd):/app --rm phpunit/phpunit run

    or in shorthand add

    $ sudo sh -c "printf \"#!/bin/sh
    export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
    docker run -v $(pwd):/app --rm phpunit/phpunit run \\\$@
    \" > /usr/local/bin/phpunit"
    $ sudo chmod +x /usr/local/bin/phpunit

    and then from host machine just

    $ phpunit --version

To run, test and develop the PHPUnit Dockerfile itself, you must use the source directly:

  1. Download the source:

    $ git clone https://github.com/JulienBreux/phpunit-docker.git
  2. Switch to the phpunit-docker directory:

    $ cd phpunit-docker
  3. Build the container:

    $ docker build -t phpunit/phpunit .
  4. Test running the container:

    $ docker run phpunit/phpunit --help

How to generate?

Install associate GEMs

$ gem install bundle
$ bundle

Generate a new version

version=6.0.6 rake version:add

Remove a version

An error in your generation?

version=6.0.6 rake version:remove

phpunit-docker's People

Contributors

julienbreux avatar ma-si avatar leonb avatar westy92 avatar agiuliano avatar

Watchers

 avatar  avatar

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.