.travis.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: C
  2. sudo: false
  3. dist: trusty
  4. addons:
  5. apt:
  6. packages:
  7. - valgrind
  8. matrix:
  9. include:
  10. - compiler: gcc
  11. env: CFLAGS_STRICT="-Wall -Wextra -Werror -Wpedantic -pedantic-errors -Wno-clobbered"
  12. - compiler: clang
  13. env: CFLAGS_STRICT="-Wall -Wextra -Werror -Weverything -Wno-#warnings -Wno-pedantic -Wno-padded -Wno-format-nonliteral -Wno-disabled-macro-expansion -Wno-missing-noreturn -Wno-reserved-id-macro"
  14. env:
  15. global:
  16. # Some projects need -std=c99 to specify library support for ./configure
  17. - CFLAGS="-std=c99 -O2"
  18. - secure: "FDGqRY+fCRQDkkY5YohCNqecntL6/AV0N4qqrJ1F+FOOOr3SKwt6dH4dJ30CZQWG/0qHNeaCDdE0HNwgCv4xjreh80NPLL6FyHz8mkz/hajKc47LYXvIxv1u8DQyUtSYA+cxEyNtJt8lb4+7ZL2lm6E1UXTjYl+8far1vpI8RjkOFIdLx2cW6LzQ6OZ2vQq5INfW6PIEPdjLD7PreLmEZY385Tjh2C77UAnq7AcG2xVd7SMAjZjkqOyVs0Eo8JD2+xhBIVCQ5H0FUIL8Upp1Th2LhxcYAccj0W5r58D6HWZLzsoNi09eb6ozKZbQRyTqfdRKuVxDZznjHsdkbGme81q7epFxOB+2ushu9lnpvFko7vJ1wstjdCcrs6lAVrCP43gU3DpyGb7BKGPLEX6ty2PWLkj5lQVOiHxxhlHkSGSn79PDOnsJsLkEqw4MEeOtcVPBF+qLLrqntLJnMAr1npdCsLgyfc1bdV6ZpgO6bdW6EOGMwl6L9ZBQgAW+CemZEy5TSAUjHS6VspMKCE2FIkzftKhq2adR0Wi1tJU1OiYVEBSgFzceNVNPQgyLojgXq8VEej7G0loj9ni4t2hd7jMhZKwQjPeYrf4xiw1rpvu64Ro7ZeAlfzqzlg4EaNcqcy+uB2gaeWW74z0j09RZd3HBkAADgbadIvgbly9lW/E="
  19. - COVERITY_SCAN_PROJECT_NAME="Tarsnap/scrypt"
  20. - COVERITY_SCAN_BRANCH_PATTERN="coverity-scan"
  21. - COVERITY_SCAN_NOTIFICATION_EMAIL="cperciva@tarsnap.com"
  22. - COVERITY_SCAN_BUILD_COMMAND_PREPEND="autoreconf -i && ./configure"
  23. - COVERITY_SCAN_BUILD_COMMAND="make all clean"
  24. before_install:
  25. # Handle Coverity scan
  26. - >
  27. if [[ "${TRAVIS_BRANCH}" == "coverity-scan" ]]; then
  28. if [[ "${TRAVIS_JOB_NUMBER##*.}" == "1" ]]; then
  29. curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
  30. else
  31. echo "Not main job; do nothing."
  32. fi
  33. echo "Done Coverity scan."
  34. sleep 1
  35. exit 0
  36. fi
  37. # Otherwise, act normally.
  38. - autoreconf -i
  39. - ./configure
  40. # We can't use strict flags in CFLAGS as a general environment
  41. # variable, because that messes up ./configure and coverity-scan.
  42. script: make CFLAGS="$CFLAGS $CFLAGS_STRICT" && make test USE_VALGRIND=1