.travis.yml 701 B

123456789101112131415161718
  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