.travis.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Travis-CI Build for Bee2 (see travis-ci.org for details)
  2. #
  3. # Credits:
  4. # - https://raw.githubusercontent.com/mmcloughlin/meow/871e50784daff1c9ec5ef66fe3d8fda6bbcd42cf/.travis.yml
  5. language: c
  6. branches:
  7. only:
  8. - master
  9. env:
  10. global:
  11. - secure: "NrH9YMK7hLXQD63bj2AHc3aEN8GbaXndTc/SXVL0dVfPa4Z//LQehOcrRkjn7GyX/RPY0pNCYPVEErB6kZ2DJ70KSxdtS9OctkH+oGRqGdnfh2AcaOiVcVZZwIp3ZFd6pzH7jn8nNc4lvZvCjv9UteRZ9jO1YWPvhJNUzwK4RFPFuMYANT9w3IV8pVe2JuUO3qMJWgxrb4yI15Yj+kxkpqRr6mHusaAQpu0dzKGvpbIT+B4dzAtCIvkDRwlmNtqObDiFIoyxJsYtAi8ez3SGAO4+eTKJsIQ1nkK2QrqWf2eRndAdsxAd5t8FlHB40befC95LkJhB4AF0uhnqcyjDTBN7faLuCDOzDfCsWwaLkR2xZADC0WAlBxgrifluOZ3NSKc+ArlAA4gCiJ7ES9r18SuEHW2A2RjZVQ7M4RO1lCrtYSEP9Xy9UjKkgWa7GFE+9nk7QKeonijfeD6n6KvB6lldWK+49kUSuDuYl52aOgm0TexL8ciFYYvWXpJ3lYgKasvdEvA93oHHDpk8cJ+1EvMb12V3hAciAxeIhipeQQnS4pQX2co22IhCIKrGzFzzp42H80jqEtrCu/xlTiI4SEX7kvKjMQaHDkpXzSTuXgg4ydyW/5TIlHqaQDRI4ek9IosAutbW+DQ8CBPrfWpskTDg3XZAcgflglFwbFOVVZ4="
  12. matrix:
  13. include:
  14. - os: linux
  15. compiler: gcc
  16. env:
  17. - COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
  18. - COVERITY_SCAN_BRANCH_PATTERN="master"
  19. - COVERITY_SCAN_NOTIFICATION_EMAIL="agievich@gmail.com"
  20. - COVERITY_SCAN_BUILD_COMMAND_PREPEND="cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_FAST=ON"
  21. - COVERITY_SCAN_BUILD_COMMAND="make"
  22. script:
  23. - curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true
  24. - os: linux
  25. compiler: gcc
  26. env: BUILD_TYPE="Release" BUILD_FAST="ON" BASH_PLATFORM="BASH_64"
  27. - os: osx
  28. compiler: clang
  29. env: BUILD_TYPE="Release" BUILD_FAST="OFF" BASH_PLATFORM="BASH_32"
  30. - os: linux
  31. compiler: gcc
  32. env: BUILD_TYPE="MemSan" BUILD_FAST="ON" BASH_PLATFORM="BASH_AVX2"
  33. - os: osx
  34. compiler: clang
  35. env: BUILD_TYPE="Check" BUILD_FAST="OFF" BASH_PLATFORM="BASH_SSE2"
  36. - os: linux
  37. dist: xenial
  38. arch: arm64
  39. compiler: gcc
  40. env: BUILD_TYPE="Release" BUILD_FAST="ON" BASH_PLATFORM="BASH_NEON"
  41. - os: linux
  42. arch: s390x
  43. compiler: gcc
  44. env: BUILD_TYPE="Release" BUILD_FAST="ON"
  45. - os: linux
  46. dist: xenial
  47. compiler: gcc
  48. env: BUILD_TYPE="Check" BUILD_FAST="ON" BASH_PLATFORM="BASH_AVX512"
  49. install:
  50. - export "SDE_VERSION_NAME=sde-external-9.7.0-2022-05-09-lin"
  51. - curl --verbose
  52. --output sde.tar.xz
  53. https://downloadmirror.intel.com/732268/${SDE_VERSION_NAME}.tar.xz
  54. - tar -xf sde.tar.xz
  55. script:
  56. - mkdir build && cd build
  57. - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_FAST=$BUILD_FAST -DBASH_PLATFORM=$BASH_PLATFORM ..
  58. - make
  59. - ../${SDE_VERSION_NAME}/sde64 -- ctest --verbose
  60. - os: linux
  61. compiler: gcc
  62. sudo: required
  63. env: BUILD_TYPE="Coverage" BUILD_FAST="OFF" BASH_PLATFORM="BASH_64"
  64. install:
  65. - sudo apt-get install -y lcov
  66. after_success:
  67. - lcov -c -i -d src -o coverage_base.info
  68. - test/testbee2
  69. - cp ../cmd/test/test.sh cmd && cd cmd && ./test.sh && cd ..
  70. - lcov -c -d src -o coverage_test.info
  71. - lcov -a coverage_base.info -a coverage_test.info -o coverage.info
  72. - bash <(curl -s https://codecov.io/bash) -f coverage.info
  73. script:
  74. - mkdir build && cd build
  75. - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_FAST=$BUILD_FAST -DBASH_PLATFORM=$BASH_PLATFORM ..
  76. - make
  77. - ctest --verbose