Public | Automated Build

Last pushed: a year ago
Short Description
Run tests by Nette\Tester in a container with php 7.0
Full Description

Nette Tester


Test your application / library in a Docker container with php 7.0.

Tools

  • Debian Jessie
  • PHP 7.0
  • Git
  • cURL
  • Composer

Usage

Composer

If there is a composer.json in /srv/app, composer install is called first.

Testing

On default is command tester -s -j 40 -p php /srv/app called.

docker run \
    -v /path/to/myapp:/srv/app \
    thebiftek/nette-tester:latest

Custom

You can modifie tester by your own. See list of variables below.

VARIABLE DEFAULT DESCRIPTION
FOLDER /srv/app string path to tests folder
SCRIPT empty string path to script with arguments
THREADS 40 number > 0
INFO empty 1
WATCH empty 1
PHP php php php-cgi
docker run \
    -v /path/to/myapp:/srv/app \
    -e FOLDER='/srv/app/a/b/tests' \
    -e INFO=1 \
    -e WATCH=1 \
    -e THREADS=10 \
    -e PHP='php-cgi' \
    thebiftek/nette-tester:latest \
docker run \
    -v /path/to/myapp:/srv/app \
    -e SCRIPT='/srv/app/vendor/bin/tester -s -p php -j 30 /srv/app/tests' \
    thebiftek/nette-tester:latest
Docker Pull Command
Owner
thebiftek
Source Repository

Comments (0)