From: Tobias Brunner Date: Thu, 30 Jun 2016 08:34:54 +0000 (+0200) Subject: travis: Add apidoc check X-Git-Tag: 5.5.1dr3~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e8f5a189cce83c05a953387b3174fdf142b5f7c;p=thirdparty%2Fstrongswan.git travis: Add apidoc check This requires at least Ubuntu 14.04 (the Doxygen version in 12.04 has some issues with our Doxyfile and prints lots of warnings). --- diff --git a/.travis.yml b/.travis.yml index 99176ba00a..70a69d5b3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,8 @@ matrix: include: - compiler: gcc env: TEST=dist + - compiler: gcc + env: TEST=apidoc - compiler: gcc env: TEST=win64 MONOLITHIC=yes - compiler: gcc diff --git a/scripts/test.sh b/scripts/test.sh index 9365492ef4..5bb6192dcd 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -110,6 +110,11 @@ osx) dist) TARGET=distcheck ;; +apidoc) + DEPS="doxygen" + CONFIG="--disable-defaults" + TARGET=apidoc + ;; *) echo "$0: unknown test $TEST" >&2 exit 1 @@ -146,5 +151,27 @@ CONFIG="$CONFIG echo "$ ./autogen.sh" ./autogen.sh || exit $? -echo "$ CC=$CC CFLAGS=\"$CFLAGS\" ./configure $CONFIG && make $TARGET" -CC="$CC" CFLAGS="$CFLAGS" ./configure $CONFIG && make -j4 $TARGET +echo "$ CC=$CC CFLAGS=\"$CFLAGS\" ./configure $CONFIG" +CC="$CC" CFLAGS="$CFLAGS" ./configure $CONFIG || exit $? + +case "$TEST" in +apidoc) + exec 2>make.warnings + ;; +*) + ;; +esac + +echo "$ make $TARGET" +make -j4 $TARGET + +case "$TEST" in +apidoc) + if test -s make.warnings; then + cat make.warnings + exit 1 + fi + ;; +*) + ;; +esac