Skip to content

Commit

Permalink
add mineclonia
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Mar 19, 2024
1 parent 0187489 commit 0724803
Show file tree
Hide file tree
Showing 5 changed files with 3,549 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/mineclonia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: mineclonia
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@main
- name: test
run: docker-compose up --exit-code-from mineclonia
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ services:
farlands_reloaded:
<<: *servicetemplate
entrypoint: "minetestserver --config /minetest.conf --world /root/.minetest/worlds/world/ --gameid farlands_reloaded"

mineclonia:
<<: *servicetemplate
entrypoint: "minetestserver --config /minetest.conf --world /root/.minetest/worlds/world/ --gameid mineclonia"
10 changes: 9 additions & 1 deletion mtt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
-- emerge a part of the world (basic smoketest)
mtt.emerge_area({ x=0, y=0, z=0 }, { x=10, y=10, z=10 })

local nodelist
if minetest.get_modpath("default") then
mtt.validate_nodenames(minetest.get_worldpath() .. "/nodelist/minetest_game.txt")
nodelist = "minetest_game"
elseif minetest.get_modpath("mcl_init") then
nodelist = "mineclonia"
end

if nodelist then
-- nodelist available
mtt.validate_nodenames(minetest.get_worldpath() .. "/nodelist/" .. nodelist .. ".txt")
end
5 changes: 4 additions & 1 deletion test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ RUN mkdir -p /root/.minetest/worlds/world/worldmods/ &&\
RUN mkdir -p /root/.minetest/games &&\
cd /root/.minetest/games &&\
git clone https://github.com/minetest/minetest_game &&\
git clone --recurse-submodules https://github.com/TerraQuest-Studios/farlands_reloaded
git clone --recurse-submodules https://github.com/TerraQuest-Studios/farlands_reloaded &&\
git clone https://codeberg.org/mineclonia/mineclonia &&\
git clone https://git.minetest.land/MineClone2/MineClone2 &&\
git clone https://codeberg.org/Wuzzy/Hades_Revisited
Loading

0 comments on commit 0724803

Please sign in to comment.