remove integration test stuff (didn't really do anything)
This commit is contained in:
parent
f289e50af2
commit
f193fc5b0a
14
.github/workflows/integration-test.yml
vendored
14
.github/workflows/integration-test.yml
vendored
@ -1,14 +0,0 @@
|
||||
name: integration-test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: integration-test
|
||||
run: ./integration-test.sh
|
@ -5,7 +5,7 @@ Chat mod for minetest
|
||||
(heavily modified version of the "original" beerchat mod: https://github.com/evrooije/beerchat.git)
|
||||
|
||||
![](https://github.com/minetest-beerchat/beerchat/workflows/luacheck/badge.svg)
|
||||
![](https://github.com/minetest-beerchat/beerchat/workflows/integration-test/badge.svg)
|
||||
![](https://github.com/minetest-beerchat/beerchat/workflows/mineunit/badge.svg)
|
||||
|
||||
# Overview
|
||||
|
||||
|
4
init.lua
4
init.lua
@ -75,8 +75,4 @@ beerchat.http = nil
|
||||
-- Load beerchat extensions
|
||||
dofile(MP.."/plugin/init.lua")
|
||||
|
||||
if minetest.settings:get_bool("enable_beerchat_integration_test") then
|
||||
dofile(MP.."/integration_test.lua")
|
||||
end
|
||||
|
||||
print("[OK] beerchat")
|
||||
|
@ -1,21 +0,0 @@
|
||||
#!/bin/sh
|
||||
# simple integration test
|
||||
|
||||
CFG=/tmp/minetest.conf
|
||||
MTDIR=/tmp/mt
|
||||
WORLDDIR=${MTDIR}/worlds/world
|
||||
|
||||
cat <<EOF > ${CFG}
|
||||
enable_beerchat_integration_test = true
|
||||
secure.http_mods = beerchat
|
||||
EOF
|
||||
|
||||
mkdir -p ${WORLDDIR}
|
||||
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/beerchat \
|
||||
registry.gitlab.com/minetest/minetest/server:5.3.0
|
||||
|
||||
test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1
|
@ -1,19 +0,0 @@
|
||||
|
||||
minetest.log("warning", "[TEST] integration-test enabled!")
|
||||
|
||||
minetest.register_on_mods_loaded(function()
|
||||
minetest.after(1, function()
|
||||
|
||||
-- TODO something useful here
|
||||
|
||||
local data = minetest.write_json({ success = true }, true);
|
||||
local file = io.open(minetest.get_worldpath().."/integration_test.json", "w" );
|
||||
if file then
|
||||
file:write(data)
|
||||
file:close()
|
||||
end
|
||||
|
||||
minetest.log("warning", "[TEST] integration tests done!")
|
||||
minetest.request_shutdown("success")
|
||||
end)
|
||||
end)
|
Loading…
x
Reference in New Issue
Block a user