• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: c
2
3os:
4  - linux
5  - osx
6
7dist: xenial
8
9compiler:
10  - gcc
11  - clang
12
13env:
14  matrix:
15  - BUILD_SYSTEM="autotools" CONFIGURE_OPTS=
16  - BUILD_SYSTEM="autotools" CONFIGURE_OPTS=--enable-64-bit-words
17  - BUILD_SYSTEM="cmake"     CONFIGURE_OPTS=
18  - BUILD_SYSTEM="cmake"     CONFIGURE_OPTS=-DENABLE_64_BIT_WORDS=ON
19install:
20  - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -y install libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib; fi
21  - if [ $TRAVIS_OS_NAME = osx ]; then brew update ; brew install libogg; fi
22
23script:
24  - if [[ "${BUILD_SYSTEM}" == "autotools" ]]; then ./autogen.sh && ./configure $CONFIGURE_OPTS && make && make check; fi
25  - 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
26  - if [ $TRAVIS_OS_NAME = linux ] && [ ${BUILD_SYSTEM} = "autotools" ]; then
27      xmllint --valid --noout doc/html/*.html;
28      xmllint --valid --noout doc/html/api/*.html;
29    fi
30