From 23945d2e3f4f450da11ba928707d85f714781db3 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 18 Oct 2018 10:58:29 +0200 Subject: [PATCH] Try to build documentation on travis, too --- .travis.yml | 1 + CMakeLists.txt | 4 +++- travis.sh | 14 +++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2411e588..6295b980 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ addons: - check - libsubunit-dev - ninja-build + - doxygen before_install: # Install cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c91aa6..71b57f11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,4 +28,6 @@ include(CPack) # Generate docs before creating source package include(src/Filelists.cmake) add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) -add_dependencies(dist lwipdocs) +if (TARGET lwipdocs) + add_dependencies(dist lwipdocs) +endif() diff --git a/travis.sh b/travis.sh index 41effd9f..fc74714a 100755 --- a/travis.sh +++ b/travis.sh @@ -25,7 +25,19 @@ cd build # Build CMake ERR=$? if [ $ERR != 0 ]; then - echo "cmake build failed" + echo "cmake GENERATE failed" exit 33 fi /usr/local/bin/cmake --build . -- -j 4 +ERR=$? +if [ $ERR != 0 ]; then + echo "cmake build failed" + exit 33 +fi + +/usr/local/bin/cmake --build . --target lwipdocs +ERR=$? +if [ $ERR != 0 ]; then + echo "lwIP documentation failed" + exit 33 +fi