summaryrefslogtreecommitdiff
path: root/vendor/j4mie/idiorm/test/docker_for_php52/README.md
blob: 80a6fb707817c3d1ea7b6ecc6128a0cda2244e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Docker for PHP 5.2 testing

Run all the following commands from this diretory.

# Building the image

    docker build . -f Dockerfile -t treffynnon/php5.2cli

# Run the tests

    docker run -t -v $(realpath ../..):/tmp/idiorm --rm treffynnon/php5.2cli /root/phpunit -c /tmp/idiorm/phpunit.xml

# Running the container interactively

    docker run -it -v $(realpath ../..):/tmp/idiorm --rm treffynnon/php5.2cli

# Running the tests

    ~/phpunit -c tmp/idiorm/phpunit.xml

# Getting out of the interactive container

    exit