aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-09 17:29:17 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-09 17:41:21 +0100
commit00d12120b9dd3be2ccb5e4cde2fea826c4d5d453 (patch)
treed396df47e5161a5720dffbb13c378f6896942bc2 /.build.yml
parent4cf9e5283b8710c08e22fd4786d48f9264298d87 (diff)
downloadadvtrains-00d12120b9dd3be2ccb5e4cde2fea826c4d5d453.tar.gz
advtrains-00d12120b9dd3be2ccb5e4cde2fea826c4d5d453.tar.bz2
advtrains-00d12120b9dd3be2ccb5e4cde2fea826c4d5d453.zip
add sourcehut build file
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..4ba0ff8
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,39 @@
+image: debian/stable
+packages:
+- git
+- curl
+- minetest-server
+- unzip
+- wget
+sources :
+- https://git.sr.ht/~gpcf/advtrains
+
+tasks:
+- activate_test_env: |
+ cd advtrains
+ git merge --no-commit origin/luaatcdebug
+- 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
+- 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