integration test

This commit is contained in:
Thomas Rudin 2018-06-14 14:23:39 +02:00
parent 4fb4acaa33
commit 0e9ffd406e
8 changed files with 1049 additions and 0 deletions

1
integration/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data

View File

@ -0,0 +1,24 @@
version: "2"
services:
minetest:
image: registry.rudin.io/x86/minetest:backport-0.4
restart: always
depends_on:
- "postgres"
volumes:
- "./minetest:/data"
command: minetestserver --config /data/minetest.conf --world /data/world/ --quiet
ports:
- "30000:30000/udp"
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: enter
volumes:
- "./data/postgres:/var/lib/postgresql/data"

3
integration/init.sh Executable file
View File

@ -0,0 +1,3 @@
docker-compose exec postgres psql -U postgres -c "create database minetest;"
docker-compose exec postgres psql -U postgres -c "create database tiles;"

1
integration/minetest/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
world

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
gameid = minetest
backend = postgresql
creative_mode = false
enable_damage = true
player_backend = postgresql
pgsql_connection = host=postgres port=5432 user=postgres password=enter dbname=minetest
pgsql_player_connection = host=postgres port=5432 user=postgres password=enter dbname=minetest

1
integration/psql-minetest.sh Executable file
View File

@ -0,0 +1 @@
docker-compose exec postgres psql -U postgres minetest

1
integration/psql-tiles.sh Executable file
View File

@ -0,0 +1 @@
docker-compose exec postgres psql -U postgres tiles