CI: travis: add doxygen stage

Before this new stage, doxygen was run only in a completely different
repo (sof-docs). So it was possible to submit totally broken doxygen
changes and get no doxygen feedback at all from CI before merge.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2020-04-07 17:02:15 -07:00 committed by Liam Girdwood
parent 717e8395a3
commit d92d3e9883
1 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,7 @@ stages:
- test - test
- qemutest - qemutest
- testbench - testbench
- doxygen
before_install: before_install:
- docker pull thesofproject/sof && docker tag thesofproject/sof sof - docker pull thesofproject/sof && docker tag thesofproject/sof sof
@ -80,3 +81,18 @@ jobs:
- ./scripts/docker-run.sh ./scripts/build-tools.sh -t &> /dev/null - ./scripts/docker-run.sh ./scripts/build-tools.sh -t &> /dev/null
- ./scripts/docker-run.sh ./scripts/host-build-all.sh - ./scripts/docker-run.sh ./scripts/host-build-all.sh
- ./scripts/host-testbench.sh - ./scripts/host-testbench.sh
- stage: doxygen
before_install: sudo apt-get -y install ninja-build doxygen graphviz
script:
# Show ALL warnings. Warnings don't cause doxygen to fail (yet).
- mkdir -p doxybuild && pushd doxybuild && cmake -GNinja -S ../doc && ninja -v doc
- popd
# Build again (it's very quick) and report a failure in Travis if
# any issue. This time doxygen stops on the first issue.
- printf 'WARN_AS_ERROR = YES\n' >> doc/sof.doxygen.in
- ninja -C doxybuild -v doc