CI: Add gitlab-ci.yml

This commit is contained in:
Dan Church 2022-11-16 13:28:06 -06:00
parent 99207ed0fc
commit 5da826e664
Signed by: h3xx
GPG Key ID: EA2BF379CD2CDBD0
2 changed files with 25 additions and 1 deletions

24
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,24 @@
stages:
- build
- test
build-allinone:
stage: build
script:
- ./make-allinone.sh
artifacts:
expire_in: 1 day
paths:
- simplify_static_dir.pl
test-run:
stage: test
script:
- t/run.sh
test-run-allinone:
stage: test
dependencies:
- build-allinone
script:
- SCRIPT=~+/simplify_static_dir.pl t/run.sh

View File

@ -3,7 +3,7 @@
WORKDIR=${0%/*}
. "$WORKDIR/funcs.sh"
SCRIPT=$(realpath -- "$WORKDIR/../simplify_static_dir-main.pl")
SCRIPT=${SCRIPT:-$(realpath -- "$WORKDIR/../simplify_static_dir-main.pl")}
TAR=$(realpath -- "$WORKDIR/t.tar")
TEMPDIR=$(mktemp -d -t "${0##*/}.XXXXXX")