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 diff --git a/Makefile b/Makefile index 0d3c2642..2a4d7099 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ install-stripped: @$(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