shithub: opus-tools

ref: 1d5431d2d8a19e1f733799598a235c8573bb3c1d
dir: /.travis.yml/

View raw version
language: c

# We need at least Ubuntu 14.04 for the libopus dependency.
dist: trusty

addons:
  apt:
    packages:
      - libogg-dev
      - libopus-dev
      - libopusfile-dev
      - libflac-dev

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libogg opus opusfile libopusenc flac xz; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://git.xiph.org/libopusenc.git; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pushd libopusenc; ./autogen.sh; ./configure --prefix=$PWD/_inst; make check; make install; export PKG_CONFIG_PATH=$PWD/_inst/lib/pkgconfig; popd; fi

script:
  - ./autogen.sh
  - ./configure
  - make
  - make distcheck