cmake: fix nasm sources build when building in a separate directory
[flac.git] / .travis.yml
1 language: c
2
3 os:
4   - linux
5   - osx
6
7 dist: xenial
8
9 compiler:
10   - gcc
11   - clang
12
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 install libogg; fi
22
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