Try to build documentation on travis, too

This commit is contained in:
Dirk Ziegelmeier 2018-10-18 10:58:29 +02:00
parent daeceeeca0
commit 23945d2e3f
3 changed files with 17 additions and 2 deletions

View File

@ -35,6 +35,7 @@ addons:
- check
- libsubunit-dev
- ninja-build
- doxygen
before_install:
# Install cmake

View File

@ -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()

View File

@ -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