From 577e91901b76f3278127cb886b6adee39a3c8fd9 Mon Sep 17 00:00:00 2001 From: Magnus Edenhill Date: Sun, 1 Sep 2019 10:00:00 +0200 Subject: [PATCH] Travis: Verify documentation --- .travis.yml | 7 +++++-- Doxyfile | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e610b96b10..b17c34b2f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,15 +29,17 @@ matrix: compiler: clang before_script: - ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest" --enable-static - - name: "Linux GCC: +integration-tests +copyright-check" + - name: "Linux GCC: +integration-tests +copyright-check +doc-check" os: linux dist: xenial compiler: gcc - env: NO_ARTIFACTS=y RUN_INTEGRATION_TESTS=y COPYRIGHT_CHECK=y + env: NO_ARTIFACTS=y RUN_INTEGRATION_TESTS=y COPYRIGHT_CHECK=y DOC_CHECK=y before_script: - wget -O rapidjson-dev.deb https://launchpad.net/ubuntu/+archive/primary/+files/rapidjson-dev_1.1.0+dfsg2-3_all.deb - sudo dpkg -i rapidjson-dev.deb - sudo pip install -r tests/requirements.txt + - sudo apt update + - sudo apt install -y doxygen graphviz - ./configure --install-deps --disable-lz4-ext --prefix="$PWD/dest" install: @@ -53,6 +55,7 @@ script: - if [[ -z $NO_ARTIFACTS ]]; then (cd dest && tar cvzf ../artifacts/librdkafka-${CC}.tar.gz .) ; fi - for distro in $ADDITIONAL_BUILDS ; do packaging/tools/distro-build.sh $distro || exit 1 ; done - if [[ $COPYRIGHT_CHECK == y ]]; then make copyright-check ; fi +- if [[ $DOC_CHECK == y ]]; then make docs ; fi - if [[ $RUN_INTEGRATION_TESTS == y ]]; then (cd tests && ./interactive_broker_version.py -c "make quick" 2.2.0) ; fi deploy: diff --git a/Doxyfile b/Doxyfile index d26828705f..86111881a1 100644 --- a/Doxyfile +++ b/Doxyfile @@ -712,6 +712,9 @@ QUIET = YES WARNINGS = YES +# Treat all warnings as errors. +WARN_AS_ERROR = YES + # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled.