-language: c\r
+language: cpp\r
cache: ccache\r
matrix:\r
# gcc\r
packages:\r
- valgrind\r
- cppcheck\r
+ - doxygen\r
env: CHECK="true"\r
- os: linux\r
dist: xenial\r
packages:\r
- clang-6.0\r
- cppcheck\r
- env: MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"\r
+ - doxygen\r
+ env: MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0" CHECK="true"\r
# The default clang on xenial is clang 7.0\r
- os: linux\r
dist: xenial\r
\r
script:\r
- make\r
-\r
-after_success:\r
- if [ -n "$CHECK" ]; then\r
- make distcheck;\r
+ if [ "$TRAVIS_OS_NAME" = "osx" ]; then\r
+ brew install doxygen;\r
+ fi;\r
+ make check;\r
result=$?;\r
if [ $result != 0 ]; then\r
cat tests/*.log;\r
exit $result;\r
fi;\r
+ make distcheck;\r
if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi;\r
fi\r
\r