aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: 8ea9c21bf086648642fef60785f1c18255ec4a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: debian/stable
packages: 
- git
- lua5.1
- luarocks
sources :
- https://git.sr.ht/~gpcf/advtrains

tasks:

- 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/serialize_lib
    ~/.luarocks/bin/busted
    for i in {advtrains,advtrains_interlocking}; do
        cd ../$i
        ~/.luarocks/bin/mineunit -c
        ~/.luarocks/bin/mineunit -r
        sed -n '/^File/,$p' luacov.report.out
    done