Travis: Add a docs checking job
authorRichard Levitte <levitte@openssl.org>
Tue, 31 Oct 2017 10:42:40 +0000 (11:42 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 31 Oct 2017 11:31:41 +0000 (12:31 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4631)

.travis.yml

index 56be83393eb230a959f6fe67bd24a3cf7161f047..ba2b537218f64218cd41201bbb7fb413c61d37af 100644 (file)
@@ -28,6 +28,7 @@ env:
     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
     - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
     - CONFIG_OPTS="no-ec" BUILDONLY="yes"
+    - CONFIG_OPTS="no-asm --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
 
 matrix:
     include:
@@ -158,10 +159,17 @@ script:
           echo -e '+\057 MAKE UPDATE FAILED'; false;
       fi;
       git diff --quiet
+    - if [ -n "$CHECKDOCS" ]; then
+          if $make doc-nits; then
+              echo -e '+\057\057 MAKE DOC-NITS OK';
+          else
+              echo -e '+\057\057 MAKE DOC-NITS FAILED'; false;
+          fi;
+      fi
     - if $make ; then
-          echo -e '+\057\057 MAKE OK';
+          echo -e '+\057\057\057 MAKE OK';
       else
-          echo -e '+\057\057 MAKE FAILED'; false;
+          echo -e '+\057\057\057 MAKE FAILED'; false;
       fi;
     - if [ -z "$BUILDONLY" ]; then
           if [ -n "$CROSS_COMPILE" ]; then
@@ -179,9 +187,9 @@ script:
     - if [ -n "$DESTDIR" ]; then
           mkdir "../$DESTDIR";
           if $make install install_docs DESTDIR="../$DESTDIR"; then
-              echo -e '+\057\057\057\057 MAKE INSTALL_DOCS OK';
+              echo -e '+\057\057\057\057\057 MAKE INSTALL_DOCS OK';
           else
-              echo -e '+\057\057\057\057 MAKE INSTALL_DOCS FAILED'; false;
+              echo -e '+\057\057\057\057\057 MAKE INSTALL_DOCS FAILED'; false;
           fi;
       fi
     - cd $top