]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
CI: test doc build
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 25 Jan 2018 12:53:17 +0000 (13:53 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 25 Jan 2018 16:35:39 +0000 (17:35 +0100)
.gitlab-ci.yml
ci/Dockerfile
doc/doc.mk

index 7e46212fbba5a681b4d6bba61764c7a0f27142cd..c4a23f4beb6db4239f945394698c4eaa9a8a81b8 100644 (file)
@@ -99,6 +99,20 @@ installcheck:linux:amd64:
     - linux
     - amd64
 
+doc:
+  stage: test
+  script:
+    - SPHINXFLAGS="-W" make doc
+  dependencies: []
+  artifacts:
+    expire_in: 1 hour
+    paths:
+      - ./doc/*
+  tags:
+    - docker
+
+
+
 deckard:linux:amd64:
   stage: test
   script:
index 5a41587dc897971453fa3f672907793ff642bed0..86dba2022314ae37bcb9a983e18155cf98136fc2 100644 (file)
@@ -10,6 +10,8 @@ RUN apt-get upgrade -y -qqq
 
 # Knot and Knot Resolver dependecies
 RUN apt-get install -y -qqq make cmake pkg-config git build-essential bsdmainutils libtool autoconf make pkg-config liburcu-dev libgnutls28-dev libedit-dev liblmdb-dev libcap-ng-dev libsystemd-dev libidn11-dev protobuf-c-compiler libfstrm-dev pkg-config libuv1-dev libcmocka-dev libluajit-5.1-dev lua-sec lua-socket lua-http
+# documentation dependecies
+RUN apt-get install -y -qqq doxygen python3-sphinx python3-breathe python3-sphinx-rtd-theme
 
 # Python packags required for Deckard CI
 # Python: grab latest versions from PyPi
index 26a52bf6325e4bbd344eff98441a59b281eecdd2..58c299e3411a327a6ddad8627baa9e787af7dec3 100644 (file)
@@ -2,7 +2,7 @@ ifeq ($(HAS_doxygen)|$(HAS_sphinx-build), yes|yes)
 doc-doxygen:
        @cd doc && $(doxygen_BIN)
 doc-html: doc-doxygen
-       @cd doc && $(sphinx-build_BIN) -b html . html
+       @cd doc && $(sphinx-build_BIN) $(SPHINXFLAGS) -b html . html
 else
 doc-html:
        $(error doxygen and sphinx must be installed)