From ba9406ca2eacbd263932e123798e8c89bdc087f4 Mon Sep 17 00:00:00 2001 From: Frank Steinberg <steinberg@ibr.cs.tu-bs.de> Date: Thu, 3 Oct 2019 21:46:10 +0200 Subject: [PATCH] Initial steps towards CI. --- .gitlab-ci.yml | 18 ++++++++++++++++++ Makefile | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..76675e2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +image: "ubuntu" + +before_script: + - apt-get update -qq && apt-get install -y -qq make curl libxml2-utls xsltproc + +stages: + - build + - test + +build: + stage: build + script: + - make +test: + stage: test + script: + - make test + diff --git a/Makefile b/Makefile index f53b3ff..8827748 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,10 @@ orig: bjcp-2015-styleguide-orig.xml xsl/bjcp-2015-styleguide-split.xsl bjcp-2015-styleguide-de.xml: orig de xsl/bjcp-2015-styleguide-translate.xsl xsltproc --stringparam lang de xsl/bjcp-2015-styleguide-translate.xsl bjcp-2015-styleguide-orig.xml > bjcp-2015-styleguide-de.xml +test: bjcp-2015-styleguide-orig.xml bjcp-2015-styleguide-de.xml + xmllint --noout bjcp-2015-styleguide-orig.xml + xmllint --noout bjcp-2015-styleguide-de.xml + clean: rm -rf cache orig rm -f bjcp-2015-styleguide-orig.xml -- GitLab