summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 0ae289c8f72f2eaf769cd6ea604997156ac222b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: c

arch:
  - amd64
  - arm64

os:
  - linux
  - osx

dist: xenial

compiler:
  - gcc
  - clang

env:
  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
install:
  - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -y install libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib; fi
  - echo "TRAVIS_ARCH: $TRAVIS_ARCH"
  - if [ $TRAVIS_OS_NAME = osx ]; then brew update ; brew install libogg; fi

script:
  - 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
  - if [ $TRAVIS_OS_NAME = linux ] && [ ${BUILD_SYSTEM} = "autotools" ]; then
      xmllint --valid --noout doc/html/*.html;
      xmllint --valid --noout doc/html/api/*.html;
    fi