Simplified logic of parsing sizes of rice-partitions
[flac.git] / .travis.yml
blob784eca9c3ad8c7fc175793b6b36fa8ccf299721c
1 language: c
3 os:
4   - linux
5   - osx
7 dist: xenial
9 compiler:
10   - gcc
11   - clang
13 env:
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
19 install:
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
23 script:
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