.travis.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # see
  2. # http://docs.travis-ci.com/user/getting-started/
  3. # http://docs.travis-ci.com/user/languages/c/
  4. # http://docs.travis-ci.com/user/build-configuration/
  5. # http://docs.travis-ci.com/user/multi-os/
  6. #
  7. language: c
  8. branches:
  9. only:
  10. - master
  11. # matrix of compilers
  12. compiler:
  13. - gcc
  14. # - clang
  15. # - c++
  16. # matrix of OSes (feature flagged; not enabled now)
  17. os:
  18. - linux
  19. - osx
  20. # matrix of raptor & rasqal versions
  21. env:
  22. - RAPTOR_INSTALL_VERSION=2.0.7 RASQAL_INSTALL_VERSION=0.9.33
  23. - RAPTOR_INSTALL_VERSION=2.0.15 RASQAL_INSTALL_VERSION=0.9.33
  24. - RAPTOR_INSTALL_VERSION=2.0.7 RASQAL_INSTALL_VERSION=0.9.26
  25. - RAPTOR_INSTALL_VERSION=2.0.15 RASQAL_INSTALL_VERSION=0.9.26
  26. # overall matrix configuration
  27. #matrix:
  28. # allow_failures:
  29. # - os: osx
  30. #
  31. # exclude:
  32. # - compiler: c++
  33. # env: RAPTOR_INSTALL_VERSION=2.0.7
  34. # - compiler: clang
  35. # env: RAPTOR_INSTALL_VERSION=2.0.7
  36. # Install raptor and rasqal extra dependencies too (libyajl-dev)
  37. # since we may build raptor and rasqal from tarballs
  38. install:
  39. - env | sort
  40. - if [ "$TRAVIS_OS_NAME" = "" ]; then TRAVIS_OS_NAME=linux; fi
  41. - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./scripts/install-bison3.sh; sudo apt-get update -qq -y; sudo apt-get install -qq -y gtk-doc-tools libraptor2-dev libgmp-dev libmhash-dev libpcre3-dev uuid-dev libyajl-dev libgmp-dev; fi
  42. - raptor_min_version=`awk -F= '/RAPTOR_MIN_VERSION=/{print $2}' configure.ac` && ./scripts/install-raptor.sh $raptor_min_version $RAPTOR_INSTALL_VERSION
  43. - rasqal_min_version=`awk -F= '/RASQAL_MIN_VERSION=/{print $2}' configure.ac` && ./scripts/install-rasqal.sh $rasqal_min_version $RASQAL_INSTALL_VERSION
  44. - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install raptor rasqal bison gtk-doc yajl mhash pcre; fi
  45. script: ./autogen.sh && make && make check