2017-01-22 04:15:44 +03:00
|
|
|
language: c
|
2018-05-19 12:32:54 +03:00
|
|
|
|
2018-05-20 13:00:16 +03:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2018-05-19 12:32:54 +03:00
|
|
|
|
2019-04-25 07:48:15 +03:00
|
|
|
dist: xenial
|
|
|
|
|
2018-05-20 13:00:16 +03:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2018-05-19 12:32:54 +03:00
|
|
|
|
2018-05-20 13:00:16 +03:00
|
|
|
env:
|
2019-04-25 07:48:15 +03:00
|
|
|
matrix:
|
|
|
|
- BUILD_SYSTEM="autotools" CONFIGURE_OPTS=
|
|
|
|
- BUILD_SYSTEM="autotools" CONFIGURE_OPTS=--enable-64-bit-words
|
|
|
|
- BUILD_SYSTEM="cmake" CONFIGURE_OPTS=
|
|
|
|
- BUILD_SYSTEM="cmake" CONFIGURE_OPTS=-DENABLE_64_BIT_WORDS=ON
|
2018-05-20 13:00:16 +03:00
|
|
|
install:
|
2019-07-30 20:30:21 +03:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -y install libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib; fi
|
2019-10-16 00:57:14 +03:00
|
|
|
- if [ $TRAVIS_OS_NAME = osx ]; then brew update ; brew install libogg; fi
|
2018-05-19 12:32:54 +03:00
|
|
|
|
2017-01-22 04:15:44 +03:00
|
|
|
script:
|
2019-04-25 07:48:15 +03:00
|
|
|
- if [[ "${BUILD_SYSTEM}" == "autotools" ]]; then ./autogen.sh && ./configure $CONFIGURE_OPTS && make && make check; fi
|
|
|
|
- if [[ "${BUILD_SYSTEM}" == "cmake" ]]; then mkdir cmake-build && cd cmake-build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON $CONFIGURE_OPTS && cmake --build . && ctest -V; fi
|
2019-07-30 20:30:21 +03:00
|
|
|
- if [ $TRAVIS_OS_NAME = linux ] && [ ${BUILD_SYSTEM} = "autotools" ]; then
|
|
|
|
xmllint --valid --noout doc/html/*.html;
|
|
|
|
xmllint --valid --noout doc/html/api/*.html;
|
|
|
|
fi
|