Commit c26aa2b8 authored by George Nash's avatar George Nash Committed by Kishen Maloor

Add documentation build to CI build

This add a shell script that can be run to build
documentation if the Doxygen.log file is empty the script
will cat the contents to the shell so it can be viewed.

Also add this script to the .gitlab-ci.yml.
Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
parent c2dd1a0c
Pipeline #371 passed with stage
in 7 minutes and 9 seconds
......@@ -11,6 +11,7 @@ Linux_Secured:
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=1
Linux_Secured_Test:
stage: build
before_script:
......@@ -21,6 +22,7 @@ Linux_Secured_Test:
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=1 test
Linux_Unsecured:
stage: build
before_script:
......@@ -31,6 +33,7 @@ Linux_Unsecured:
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=0
Linux_Unsecured_Test:
stage: build
before_script:
......@@ -41,6 +44,7 @@ Linux_Unsecured_Test:
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=0 test
Android_build:
stage: build
image: openjdk:8-jdk
......@@ -63,3 +67,11 @@ Android_build:
script:
- cd port/android
- make DYNAMIC=1 TCP=1 IPV4=1 SECURE=1 PKI=1 CLOUD=1 JAVA=1 DEBUG=0
run_doxygen:
stage: build
before_script:
- apt update && apt -y install make autoconf doxygen
script:
- cd tools
- ./build_doc.sh
......@@ -22,7 +22,7 @@
/**
\mainpage IoTivity-Lite API
The file \link oc_api.h\endlink is the main entry for all
The file \link oc_api.h \endlink is the main entry for all
server and client related OCF functions.
*/
......
#! /bin/bash
if doxygen doxygen.ini ;
then
[ ! -s Doxygen.log ]
if [ $? -eq 0 ]
then
exit 0
else
cat Doxygen.log
exit 1
fi
else
exit 1
fi
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