mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-14 14:30:44 +01:00
27 lines
742 B
Bash
Executable File
27 lines
742 B
Bash
Executable File
#!/bin/sh
|
|
# simple integration test
|
|
|
|
CFG=/tmp/minetest.conf
|
|
MTDIR=/tmp/mt
|
|
WORLDDIR=${MTDIR}/worlds/world
|
|
WORLDMODDIR=${WORLDDIR}/worldmods
|
|
|
|
# settings
|
|
cat <<EOF > ${CFG}
|
|
enable_technic_integration_test = true
|
|
EOF
|
|
|
|
rm -rf ${WORLDDIR}
|
|
mkdir -p ${WORLDMODDIR}
|
|
git clone https://gitlab.com/VanessaE/basic_materials.git ${WORLDMODDIR}/basic_materials
|
|
git clone https://gitlab.com/VanessaE/pipeworks.git ${WORLDMODDIR}/pipeworks
|
|
|
|
chmod 777 ${MTDIR} -R
|
|
docker run --rm -i \
|
|
-v ${CFG}:/etc/minetest/minetest.conf:ro \
|
|
-v ${MTDIR}:/var/lib/minetest/.minetest \
|
|
-v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods/technic \
|
|
registry.gitlab.com/minetest/minetest/server:5.2.0
|
|
|
|
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1
|