.travis.yml 745 B

1234567891011121314151617181920212223242526
  1. language: c
  2. dist: trusty
  3. env:
  4. - BUILD=AUTOTOOLS
  5. - BUILD=CMAKE
  6. script:
  7. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./autogen.sh ; fi
  8. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then ./configure ; fi
  9. - if [[ "$BUILD" == "AUTOTOOLS" ]] ; then make distcheck ; fi
  10. - if [[ "$BUILD" == "CMAKE" ]] ; then mkdir build ; fi
  11. - if [[ "$BUILD" == "CMAKE" ]] ; then pushd build ; fi
  12. - if [[ "$BUILD" == "CMAKE" ]] ; then cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/_inst .. ; fi
  13. - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . ; fi
  14. - if [[ "$BUILD" == "CMAKE" ]] ; then cmake --build . --target install ; fi
  15. - if [[ "$BUILD" == "CMAKE" ]] ; then popd ; fi
  16. os:
  17. - linux
  18. - osx
  19. compiler:
  20. - gcc
  21. - clang