aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: fb2d83e13d8eac7a95c7699ce3f8d4fbddc3f701 (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. # We test on OSX without python3, to make sure that works
  19. fi
  20. script:
  21. - make
  22. - make test
  23. - |
  24. if [ $(TRAVIS_ON_NAME:-'linux'} = 'linux' ]
  25. then
  26. PROG=`ls cmark-*.*/build/src/cmark` make leakcheck
  27. fi