]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: build documentation on Ubuntu 18.04
authorJason Ish <jason.ish@oisf.net>
Thu, 19 Mar 2020 19:30:45 +0000 (13:30 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 4 Apr 2020 11:49:41 +0000 (13:49 +0200)
.github/workflows/builds.yml

index fe0222d2c5b3eab3ff377ea076618bb6463adaac..6bacea7d800e938f9fd2a7f58a6bb0dcee255851 100644 (file)
@@ -319,6 +319,15 @@ jobs:
                 zlib1g \
                 zlib1g-dev \
                 exuberant-ctags
+      - name: Install packages for generating documentation
+        run: |
+          DEBIAN_FRONTEND=noninteractive apt -y install \
+                sphinx-doc \
+                sphinx-common \
+                texlive-latex-base \
+                texlive-fonts-recommended \
+                texlive-fonts-extra \
+                texlive-latex-extra
       - name: Install Coccinelle
         run: |
           add-apt-repository -y ppa:npalix/coccinelle
@@ -335,6 +344,12 @@ jobs:
       - name: Running unit tests and cocci checks
         # Set the concurrency level for cocci.
         run: CONCURRENCY_LEVEL=2 make check
+      - run: make dist
+      - name: Checking that documentation was built
+        run: |
+          test -e doc/devguide/devguide.pdf
+          test -e doc/userguide/userguide.pdf
+          test -e doc/userguide/suricata.1
       - name: Fetching suricata-verify
         run: git clone https://github.com/OISF/suricata-verify.git
       - name: Running suricata-verify