testing harness
This commit is contained in:
parent
ce02fb3d7a
commit
4e7350b834
24
.github/workflows/ldoc.yml
vendored
24
.github/workflows/ldoc.yml
vendored
@ -1,24 +0,0 @@
|
||||
name: ldoc
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
- name: apt
|
||||
run: sudo apt-get install -y luarocks
|
||||
- name: ldoc install
|
||||
run: luarocks install --local ldoc
|
||||
- name: ldoc run
|
||||
run: $HOME/.luarocks/bin/ldoc .
|
||||
|
||||
- name: deploy
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: docs
|
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
||||
version: "3.6"
|
||||
|
||||
services:
|
||||
sut:
|
||||
build:
|
||||
context: ./test
|
||||
args:
|
||||
ENGINE_VERSION: ${ENGINE_VERSION:-5.6.0}
|
||||
user: root
|
||||
volumes:
|
||||
- "./:/root/.minetest/worlds/world/worldmods/mapsync/"
|
||||
- "world_data:/root/.minetest/worlds/world"
|
||||
- "./test/world.mt:/root/.minetest/worlds/world/world.mt"
|
||||
- "./test/minetest.conf:/minetest.conf"
|
||||
|
||||
volumes:
|
||||
world_data: {}
|
5
init.lua
5
init.lua
@ -18,3 +18,8 @@ end
|
||||
|
||||
-- pass on global env (secure/insecure)
|
||||
loadfile(MP.."/functions.lua")(global_env)
|
||||
dofile(MP.."/api.lua")
|
||||
|
||||
if minetest.get_modpath("mtt") and mtt.enabled then
|
||||
dofile(MP.."/mtt.lua")
|
||||
end
|
10
test/Dockerfile
Normal file
10
test/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
ARG ENGINE_VERSION=5.6.0
|
||||
FROM registry.gitlab.com/minetest/minetest/server:${ENGINE_VERSION}
|
||||
|
||||
USER root
|
||||
RUN apk add git &&\
|
||||
mkdir -p /root/.minetest/worlds/world/worldmods/ &&\
|
||||
git clone https://github.com/BuckarooBanzay/mtt /root/.minetest/worlds/world/worldmods/mtt &&\
|
||||
git clone https://github.com/BuckarooBanzay/mtzip /root/.minetest/worlds/world/worldmods/mtzip
|
||||
|
||||
ENTRYPOINT minetestserver --config /minetest.conf
|
4
test/minetest.conf
Normal file
4
test/minetest.conf
Normal file
@ -0,0 +1,4 @@
|
||||
default_game = minetest_game
|
||||
mg_name = v7
|
||||
mtt_enable = true
|
||||
mtt_filter = mapsync
|
9
test/world.mt
Normal file
9
test/world.mt
Normal file
@ -0,0 +1,9 @@
|
||||
enable_damage = false
|
||||
creative_mode = true
|
||||
mod_storage_backend = sqlite3
|
||||
auth_backend = sqlite3
|
||||
player_backend = dummy
|
||||
backend = dummy
|
||||
gameid = minetest
|
||||
world_name = mapsync
|
||||
server_announce = false
|
Loading…
x
Reference in New Issue
Block a user