technic-cd2025/integration-test.sh
OgelGames b3ee83f759 Fix dependencies
removed dependency on `screwdriver` and added `moreores` dependency
2021-11-02 03:28:12 +11:00

28 lines
866 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 --depth 1 https://gitlab.com/VanessaE/basic_materials.git ${WORLDMODDIR}/basic_materials
git clone --depth 1 https://gitlab.com/VanessaE/pipeworks.git ${WORLDMODDIR}/pipeworks
git clone --depth 1 https://github.com/minetest-mods/moreores.git ${WORLDMODDIR}/moreores
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:${MINETEST_VERSION}
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1