.travis.yml 536 B

1234567891011121314151617181920212223242526
  1. language: c
  2. os:
  3. - linux
  4. - osx
  5. compiler:
  6. - gcc
  7. - clang
  8. env:
  9. - BUILD_SYSTEM=AUTOTOOLS
  10. - BUILD_SYSTEM=CMAKE
  11. addons:
  12. apt:
  13. packages:
  14. - libogg-dev
  15. install:
  16. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
  17. script:
  18. - if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./autogen.sh && ./configure && make -j2 V=1 distcheck; fi
  19. - if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then mkdir build && pushd build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. && cmake --build . && popd; fi