Wrap tests into a docker container.

This commit is contained in:
Greyscale 2019-09-03 14:56:00 +02:00
parent 296cdc4d82
commit 176bc64218
3 changed files with 27 additions and 1 deletions

8
Makefile Normal file
View file

@ -0,0 +1,8 @@
test-blog-app:
clear;
docker-compose run blog-app ./src/Generator/zenderator --workdir=./examples/blog-app
setup:
composer install
test: setup test-blog-app

18
docker-compose.yml Normal file
View file

@ -0,0 +1,18 @@
version: "2.3"
services:
blog-app:
image: gone/php:nginx
volumes:
- ./:/app
depends_on:
mysql:
condition: service_healthy
mysql:
image: benzine/mariadb:10.4
environment:
MYSQL_ROOT_PASSWORD: ChangeMe
MYSQL_USER: bloguser
MYSQL_PASSWORD: m4&ChangeMe^eN
MYSQL_DATABASE: blog

View file

@ -8,7 +8,7 @@ benzine:
databases:
mysql:
type: mysql
host: 127.50.0.1
host: mysql
port: 3306
username: root
password: ChangeMe