From 9ec9db0ca98e8a1f50b20e4f0d916a83d96a581c Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Tue, 9 Nov 2021 21:51:33 +0100 Subject: configure build.yml to run the unit tests --- .build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.build.yml b/.build.yml index 4ba0ff8..89589b9 100644 --- a/.build.yml +++ b/.build.yml @@ -5,13 +5,12 @@ packages: - minetest-server - unzip - wget +- lua-busted sources : - https://git.sr.ht/~gpcf/advtrains -tasks: -- activate_test_env: | - cd advtrains - git merge --no-commit origin/luaatcdebug +tasks: + - download_mt_server: | mkdir bin wget https://lifomaps.de/advtrains-test/builtin.tar.gz @@ -29,6 +28,12 @@ tasks: curl https://lifomaps.de/advtrains-test/testworld.tar.gz -o ~/testworld.tar.gz cd .minetest/worlds/ tar xf ../../testworld.tar.gz +- run_unit_tests : | + cd advtrains/advtrains + busted +- activate_test_env: | + cd advtrains + git merge --no-commit origin/luaatcdebug - install_advtrains : | mkdir .minetest/mods cp -r advtrains .minetest/mods -- cgit v1.2.3