Commit 6f26ded4 authored by Guido Gunther's avatar Guido Gunther

Makefile: validate XML

Make sure we do this before each build.
parent 53b42952
job:
before_script:
- apt-get -y update
- apt-get -y install make python3-sphinx
- apt-get -y install make python3-sphinx libxml2-utils
tags:
- librem5
script:
......
# Makefile for Sphinx documentation
#
XML_SOURCES = \
examples/doap.xml \
$(NULL)
# You can set these variables from the command line.
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
......@@ -49,7 +53,7 @@ clean:
rm -rf $(BUILDDIR)/*
.PHONY: html
html:
html: check
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
......@@ -223,3 +227,7 @@ dummy:
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
@echo
@echo "Build finished. Dummy builder generates no files."
.PHONY: check
check:
xmllint --noout $(XML_SOURCES)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment