From d867fbe0a5fa6536b517f82bfd6c2c1114e6d067 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Wed, 2 Jun 2021 01:30:52 +0200
Subject: [PATCH] WIP: pipeline

---
 .docker/Dockerfile | 3 +++
 doc/CMakeLists.txt | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.docker/Dockerfile b/.docker/Dockerfile
index 7f64aac..689b567 100644
--- a/.docker/Dockerfile
+++ b/.docker/Dockerfile
@@ -21,3 +21,6 @@ RUN apt-get install -y python3-pip
 
 COPY doc/requirements.txt requirements.txt
 RUN pip3 install -r requirements.txt
+
+RUN apt-get install -y protobuf-compiler
+RUN go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.4.1
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 0624aa6..5701fd1 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -22,11 +22,11 @@ find_program(SPHINX_CMD sphinx-build)
 find_program(PROTOC_CMD protoc)
 find_program(PROTOC_GEN_DOC_PLUGIN protoc-gen-doc)
 if (NOT PROTOC_CMD)
-    message("Protoc compiler  needs to be installed to generate the documentation")
+    message(FATAL "Protoc compiler  needs to be installed to generate the documentation")
 elseif (NOT PROTOC_GEN_DOC_PLUGIN)
-    message("Proto-gen-doc plugin needs to be installed to generate the documentation")
+    message(FATAL "Proto-gen-doc plugin needs to be installed to generate the documentation")
 elseif (NOT SPHINX_CMD)
-    message("Sphinx needs to be installed to generate the documentation")
+    message(FATAL "Sphinx needs to be installed to generate the documentation")
 else ()
     # Copy sources to build directory
     add_custom_target(doc-copy-sources
-- 
GitLab