.travis.yml 897 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. language: c
  2. sudo: false
  3. compiler:
  4. - gcc
  5. - clang
  6. os:
  7. - linux
  8. - osx
  9. before_script:
  10. - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew update; brew install redis; fi
  11. addons:
  12. apt:
  13. packages:
  14. - libc6-dbg
  15. - libc6-dev
  16. - libc6:i386
  17. - libc6-dev-i386
  18. - libc6-dbg:i386
  19. - gcc-multilib
  20. - valgrind
  21. env:
  22. - CFLAGS="-Werror"
  23. - PRE="valgrind --track-origins=yes --leak-check=full"
  24. - TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
  25. - TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
  26. matrix:
  27. exclude:
  28. - os: osx
  29. env: PRE="valgrind --track-origins=yes --leak-check=full"
  30. - os: osx
  31. env: TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
  32. script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example