.travis.yml 909 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
language: c

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

addons:
  apt:
    packages:
      - libogg-dev
      - libopus-dev
11
      - libopusfile-dev
12 13
      - libflac-dev

Stephen's avatar
Stephen committed
14 15 16 17 18 19 20 21 22 23
os:
  - linux
  - osx

compiler:
  - gcc
  - clang

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
Mark Harris's avatar
Mark Harris committed
24 25
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libogg opus opusfile libopusenc flac; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig"; fi
26 27
  - 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
Stephen's avatar
Stephen committed
28

29 30 31 32 33
script:
  - ./autogen.sh
  - ./configure
  - make
  - make distcheck