From 712aa08fbcf8c9339bf94bc91e36a9c70b840f78 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 8 Sep 2022 16:32:04 +0200 Subject: [PATCH 1/2] make test depend on all --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 837fd90c..479163d8 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ install-nostripped: @$(MAKE) -C rem2html install @$(MAKE) -C rem2pdf -f Makefile.top install INSTALL_BASE=$(INSTALL_BASE) -test: +test: all @$(MAKE) -C src -s test distclean: clean From 316eb43303ede5a7fd67db2b064de71a8467f3b1 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 8 Sep 2022 10:51:45 +0200 Subject: [PATCH 2/2] Add Gitlab CI --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..32e10d1f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +tests: + image: 'debian:stable-slim' + before_script: + - apt update && apt-get -y install gcc make + - useradd --create-home testuser + - chown -R testuser . + - chmod -R go-w . + script: + - LANG=C.UTF-8 su testuser -c 'make test' + artifacts: + when: always + paths: + - tests/test.out