master
Thomas Rudin 2019-09-30 18:59:16 +02:00
parent 0b75ee517c
commit 11deb921c0
3 changed files with 35 additions and 0 deletions

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: generic
services:
- docker
script:
- ./test.sh
notifications:
email: false

12
test.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# simple integration test
mkdir -p /tmp/mt/worlds/world
chmod 777 /tmp/mt -Rv
docker run --rm -it \
-v $(pwd)/test-minetest.conf:/etc/minetest/minetest.conf \
-v /tmp/mt:/var/lib/minetest/.minetest \
-v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods \
registry.gitlab.com/minetest/minetest/server:5.0.1
test -f /tmp/mt/worlds/world/integration_test.json && exit 0 || exit 1

13
update.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# update meta repo
git pull
# sync repo urls
git submodule sync
# initialize new repos
git submodule init
# update commits
git submodule update
# remove unversioned files
git clean -dff