.travis.yml 909 B

12345678910111213141516171819202122232425262728293031323334
  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; fi
  20. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig"; fi
  21. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://git.xiph.org/libopusenc.git; fi
  22. - 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
  23. script:
  24. - ./autogen.sh
  25. - ./configure
  26. - make
  27. - make distcheck