aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-05-05 21:04:23 +0200
committerY. Wang <yw05@forksworld.de>2023-03-23 20:06:02 +0100
commit9d5205e7e2a9ad5ed28e84776a5ab1186963a855 (patch)
treeaa41bf4d53d07e4960fda13d3838f16507e05c69
parent5c8962b39bd4f6871ec87a988ac43d7bfad04d2b (diff)
downloadadvtrains-9d5205e7e2a9ad5ed28e84776a5ab1186963a855.tar.gz
advtrains-9d5205e7e2a9ad5ed28e84776a5ab1186963a855.tar.bz2
advtrains-9d5205e7e2a9ad5ed28e84776a5ab1186963a855.zip
Use mineunit for advtrains_*
-rw-r--r--.build.yml20
1 files changed, 13 insertions, 7 deletions
diff --git a/.build.yml b/.build.yml
index 303348f..40e97ff 100644
--- a/.build.yml
+++ b/.build.yml
@@ -5,7 +5,8 @@ packages:
- minetest-server
- unzip
- wget
-- lua-busted
+- lua5.1
+- luarocks
sources :
- https://git.sr.ht/~gpcf/advtrains
@@ -28,13 +29,18 @@ tasks:
curl https://lifomaps.de/advtrains-test/testworld.tar.gz -o ~/testworld.tar.gz
cd .minetest/worlds/
tar xf ../../testworld.tar.gz
+- install_mineunit : |
+ for i in {busted,luacov}; do
+ luarocks install --local --lua-version 5.1 $i >/dev/null
+ done
+ luarocks install --local --lua-version 5.1 --server=https://luarocks.org/dev mineunit
- run_unit_tests : |
- cd advtrains/advtrains
- busted
- cd ../advtrains_interlocking
- busted
- cd ../serialize_lib
- busted
+ cd advtrains/serialize_lib
+ ~/.luarocks/bin/busted
+ for i in {advtrains,advtrains_interlocking}; do
+ cd ../$i
+ ~/.luarocks/bin/mineunit
+ done
- activate_test_env: |
cd advtrains
git merge --no-commit origin/luaatcdebug