.travis.yml 834 B

1234567891011121314151617181920212223242526
  1. language: c
  2. os:
  3. - linux
  4. - osx
  5. compiler:
  6. - gcc
  7. - clang
  8. env:
  9. - BUILD=AUTOTOOLS
  10. - BUILD=CMAKE
  11. script:
  12. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
  13. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./configure ; fi
  14. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then make distcheck ; fi
  15. - if [[ "$BUILD" == "CMAKE" ]] ; then mkdir build ; fi
  16. - if [[ "$BUILD" == "CMAKE" ]] ; then pushd build ; fi
  17. - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCPACK_PACKAGE_CONTACT="Xiph.Org Foundation" .. ; fi
  18. - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
  19. - if [[ "$BUILD" == "CMAKE" ]] ; then ctest ; fi
  20. - if [[ "$BUILD" == "CMAKE" && "$TRAVIS_OS_NAME" == "linux" ]] ; then cpack -G DEB ; fi
  21. - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi