.travis.yml 798 B

123456789101112131415161718192021222324252627282930313233
  1. language: c
  2. # We need at least Ubuntu 14.04 for the libopus dependency.
  3. dist: trusty
  4. addons:
  5. apt:
  6. packages:
  7. - libogg-dev
  8. - libopus-dev
  9. - libopusfile-dev
  10. - libflac-dev
  11. os:
  12. - linux
  13. - osx
  14. compiler:
  15. - gcc
  16. - clang
  17. before_install:
  18. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  19. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libogg opus opusfile libopusenc flac xz; fi
  20. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://git.xiph.org/libopusenc.git; fi
  21. - 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
  22. script:
  23. - ./autogen.sh
  24. - ./configure
  25. - make
  26. - make distcheck