Sign inSign up

gpasquet/phalcon-tests

By gpasquet

•Updated over 8 years ago

Run tests against multiple phalcon versions

Image
0

1.2K

gpasquet/phalcon-tests repository overview

⁠Docker Phalcon designed to run unit/integration test suites.

Base images are Debian (jessie for 2.0.13, buster for 3.2 and 3.3).

⁠Supported tags

Tags relate to the phalcon version.

  • 3.3
  • 3.2
  • 2.0.13

⁠Image test

This is how to run a simple test command:

$ docker run -it --rm gpasquet/phalcon-tests:2.0.13 -v .:/var/www phpunit

The default workdir is /var/www/tests, assuming your tests are located there.

⁠Watch for changes

The default command uses pywatch⁠ to monitor file changes and run the tests when needed.

⁠Example compose file

Here's an example compose file:

version: "3"
services:
  mysql:
    image: "mysql:5.5"
    restart: always
    ports:
      - "3307:3306"
    volumes:
      - ${PWD}/up:/docker-entrypoint-initdb.d
    environment:
      - MYSQL_ROOT_PASSWORD=foobar

  mlpservice:
    image: "gpasquet/phalcon-test:2.0.13"
    depends_on:
      - mysql
    volumes:
      - ${PWD}:/var/www
    working_dir: /var/www/tests
    command: sh -c '/var/www/wait-for-it.sh -t 60 mysql:3306 -- phpunit --verbose --tap; find .. -name "*.php" | xargs pywatch "phpunit --verbose --tap"'

Tag summary

Content type

Image

Digest

Size

259.2 MB

Last updated

over 8 years ago

docker pull gpasquet/phalcon-tests