aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 4ef377db6c559d87c0f981e95a859765ea3f01a1 (plain)
  1. os:
  2.  - linux
  3. - osx
  4. language: c
  5. compiler:
  6. - clang
  7. - gcc
  8. before_install:
  9. # we need a more recent cmake than travis/linux provides (at least 2.8.9):
  10. - |
  11. if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]
  12. then
  13. echo 'yes' | sudo add-apt-repository ppa:kalakris/cmake
  14. sudo apt-get update -qq
  15. sudo apt-get install -qq cmake python3 valgrind
  16. elif [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]
  17. then
  18. echo "Building without python3, to make sure that works."
  19. fi
  20. script:
  21. - make
  22. - make test
  23. - |
  24. if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]
  25. then
  26. make leakcheck
  27. fi