2021-11-09 08:29:17 -08:00
|
|
|
image: debian/stable
|
|
|
|
packages:
|
|
|
|
- git
|
|
|
|
- curl
|
|
|
|
- minetest-server
|
|
|
|
- unzip
|
|
|
|
- wget
|
2021-11-09 12:51:33 -08:00
|
|
|
- lua-busted
|
2021-11-09 08:29:17 -08:00
|
|
|
sources :
|
|
|
|
- https://git.sr.ht/~gpcf/advtrains
|
|
|
|
|
2021-11-09 12:51:33 -08:00
|
|
|
tasks:
|
|
|
|
|
2021-11-09 08:29:17 -08:00
|
|
|
- download_mt_server: |
|
|
|
|
mkdir bin
|
|
|
|
wget https://lifomaps.de/advtrains-test/builtin.tar.gz
|
|
|
|
tar xf builtin.tar.gz
|
|
|
|
curl https://lifomaps.de/advtrains-test/minetestserver -o ~/bin/minetestserver
|
|
|
|
chmod +x ~/bin/minetestserver
|
|
|
|
- install_mt_game : |
|
|
|
|
curl -L https://github.com/minetest/minetest_game/archive/master.zip -o master.zip
|
|
|
|
mkdir -p .minetest/games/
|
|
|
|
cd .minetest/games
|
|
|
|
unzip ../../master.zip
|
|
|
|
mv minetest_game-master minetest_game
|
|
|
|
- install_test_world: |
|
|
|
|
mkdir -p .minetest/worlds/
|
|
|
|
curl https://lifomaps.de/advtrains-test/testworld.tar.gz -o ~/testworld.tar.gz
|
|
|
|
cd .minetest/worlds/
|
|
|
|
tar xf ../../testworld.tar.gz
|
2021-11-09 12:51:33 -08:00
|
|
|
- run_unit_tests : |
|
|
|
|
cd advtrains/advtrains
|
|
|
|
busted
|
2021-11-09 12:56:41 -08:00
|
|
|
cd ../advtrains_interlocking
|
|
|
|
busted
|
2021-11-10 02:39:54 -08:00
|
|
|
cd ../serialize_lib
|
|
|
|
busted
|
2021-11-09 12:51:33 -08:00
|
|
|
- activate_test_env: |
|
|
|
|
cd advtrains
|
|
|
|
git merge --no-commit origin/luaatcdebug
|
2021-11-09 08:29:17 -08:00
|
|
|
- install_advtrains : |
|
|
|
|
mkdir .minetest/mods
|
|
|
|
cp -r advtrains .minetest/mods
|
|
|
|
cd .minetest/mods
|
|
|
|
git clone https://git.bananach.space/basic_trains.git/
|
|
|
|
- run_test_world: |
|
|
|
|
echo "bind_address = 127.0.0.1" > minetest.conf
|
|
|
|
~/bin/minetestserver --port 31111 --gameid minetest_game --config ~/minetest.conf --world ~/.minetest/worlds/advtrains_testworld
|