2021-11-09 17:29:17 +01:00
|
|
|
image: debian/stable
|
|
|
|
packages:
|
|
|
|
- git
|
2022-05-05 21:04:23 +02:00
|
|
|
- lua5.1
|
|
|
|
- luarocks
|
2021-11-09 17:29:17 +01:00
|
|
|
sources :
|
|
|
|
- https://git.sr.ht/~gpcf/advtrains
|
|
|
|
|
2021-11-09 21:51:33 +01:00
|
|
|
tasks:
|
|
|
|
|
2022-05-05 21:04:23 +02:00
|
|
|
- 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
|
2021-11-09 21:51:33 +01:00
|
|
|
- run_unit_tests : |
|
2022-05-05 21:04:23 +02:00
|
|
|
cd advtrains/serialize_lib
|
|
|
|
~/.luarocks/bin/busted
|
|
|
|
for i in {advtrains,advtrains_interlocking}; do
|
|
|
|
cd ../$i
|
2022-05-06 21:36:21 +02:00
|
|
|
~/.luarocks/bin/mineunit -c
|
|
|
|
~/.luarocks/bin/mineunit -r
|
|
|
|
sed -n '/^File/,$p' luacov.report.out
|
2022-05-05 21:04:23 +02:00
|
|
|
done
|