.travis.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. language: c
  2. sudo: required
  3. dist: xenial
  4. # don't build tags separately
  5. if: tag IS blank
  6. compiler: gcc
  7. cache: ccache
  8. before_install:
  9. - travis_retry ./scripts/test.sh deps
  10. - travis_retry ./scripts/test.sh pydeps
  11. before_script:
  12. - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
  13. script:
  14. - ./scripts/test.sh
  15. after_success:
  16. if [ "$TEST" == "coverage" ]; then
  17. bash <(curl -s https://codecov.io/bash);
  18. fi
  19. after_failure:
  20. - cat config.log
  21. - sleep 1
  22. env:
  23. global:
  24. - TESTS_REDUCED_KEYLENGTHS=yes
  25. - LEAK_DETECTIVE=no
  26. - MONOLITHIC=no
  27. matrix:
  28. include:
  29. - env: TEST=sonarcloud
  30. if: type = push AND env(SONAR_TOKEN) IS present
  31. git:
  32. depth: false
  33. addons:
  34. sonarcloud:
  35. organization: "strongswan"
  36. - env: TEST=osx
  37. compiler: clang
  38. os: osx
  39. - env: TEST=all
  40. - env: TEST=all
  41. compiler: clang
  42. - env: TEST=all MONOLITHIC=yes
  43. - env: TEST=all MONOLITHIC=yes
  44. compiler: clang
  45. - env: TEST=all LEAK_DETECTIVE=yes
  46. - env: TEST=all LEAK_DETECTIVE=yes
  47. compiler: clang
  48. - env: TEST=coverage
  49. - env: TEST=fuzzing MONOLITHIC=yes
  50. compiler: clang
  51. - env: TEST=win64 MONOLITHIC=yes
  52. - env: TEST=win32 MONOLITHIC=yes
  53. - env: TEST=dist
  54. # "default" with GCC is already tested with "dist" above
  55. - env: TEST=default
  56. compiler: clang
  57. - env: TEST=default MONOLITHIC=yes
  58. - env: TEST=default MONOLITHIC=yes
  59. compiler: clang
  60. - env: TEST=default LEAK_DETECTIVE=yes
  61. - env: TEST=default LEAK_DETECTIVE=yes
  62. compiler: clang
  63. # we can't test Vstr as negative int args are not properly passed to CBs
  64. - env: TEST=printf-builtin
  65. - env: TEST=printf-builtin
  66. compiler: clang
  67. - env: TEST=printf-builtin LEAK_DETECTIVE=yes
  68. - env: TEST=printf-builtin LEAK_DETECTIVE=yes
  69. compiler: clang
  70. # the crypto plugins are build-tested with clang via "all" above
  71. - env: TEST=botan
  72. - env: TEST=botan LEAK_DETECTIVE=yes
  73. - env: TEST=wolfssl
  74. - env: TEST=wolfssl LEAK_DETECTIVE=yes
  75. - env: TEST=openssl
  76. - env: TEST=openssl LEAK_DETECTIVE=yes
  77. - env: TEST=openssl-1.0
  78. - env: TEST=openssl-1.0 LEAK_DETECTIVE=yes
  79. - env: TEST=gcrypt
  80. - env: TEST=gcrypt LEAK_DETECTIVE=yes
  81. - env: TEST=apidoc