.travis.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. language: c
  2. # use new build environment (docker)
  3. sudo: required
  4. env:
  5. global:
  6. # GITAUTH:
  7. - secure: nSunY54Wp5HkQCHHbKwlwpbaKyqRVIu/0EnhaoJSwhM1wqerQV/E5d/2JelO9/tZgbungAO7wk/fjutRMVc7d378RTIPwS8vHpvZfEoGhCFsLoTOlqESzsZFBup2H5t1lpQ23jRHDOxlLdJy2lz5U+zd1YnYgDXqdDFjegsIYdo=
  8. # COVERITY_SCAN_TOKEN:
  9. - secure: C7LLWmOCdRYJGiXjFYDHWwBB6XGjs9Hio4kkvDehLRredRgp1UJ73g6Av9L7xrTUide6GiPrSd+RJw7py/twx5qaeIjOWPy+XvtmabDEQBquLjEkvS+LP2EycaMe92kHMo1ItFfRomgj1FyNYPVnUFgdyedGWv+p553ziDbrMas=
  10. dist: trusty
  11. matrix:
  12. fast_finish: true
  13. include:
  14. - os: linux
  15. compiler: gcc
  16. env: ANALYZE=false
  17. - os: linux
  18. compiler: gcc
  19. env: ANALYZE=true
  20. - os: linux
  21. compiler: gcc
  22. env: DOCKER=true
  23. services:
  24. - docker
  25. - os: linux
  26. compiler: clang
  27. env: ANALYZE=false
  28. - os: linux
  29. compiler: clang
  30. env: ANALYZE=true
  31. - os: linux
  32. compiler: clang
  33. env: FUZZER=true
  34. - os: osx
  35. compiler: clang
  36. cache:
  37. directories:
  38. - $HOME/Library/Caches/Homebrew
  39. addons:
  40. apt:
  41. sources:
  42. # see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  43. packages:
  44. - binutils-mingw-w64-i686
  45. - build-essential
  46. - check
  47. - cmake
  48. - cppcheck
  49. - gcc-multilib
  50. - g++-mingw-w64-i686
  51. - g++-mingw-w64-x86-64
  52. - g++-multilib
  53. - graphviz
  54. - libsubunit-dev
  55. - libx11-dev
  56. - mingw-w64
  57. - texlive-fonts-recommended
  58. - texlive-latex-extra
  59. - texlive-latex-recommended
  60. - valgrind
  61. - wget
  62. - xutils-dev
  63. - zip
  64. coverity_scan:
  65. project:
  66. name: "open62541/open62541"
  67. description: "Build submitted by Travis"
  68. notification_email: null@plt.rwth-aachen.de
  69. build_command_prepend: "mkdir build && cd build && cmake .."
  70. build_command: "make"
  71. branch_pattern: coverity_scan
  72. cache:
  73. pip: true
  74. apt: true
  75. directories:
  76. - $HOME/install
  77. - $HOME/.cache/pip
  78. # combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
  79. before_install: |
  80. set -e
  81. if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" = 1 ]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
  82. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
  83. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
  84. script: |
  85. set -e
  86. if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_linux_script.sh; fi
  87. if [ ${TRAVIS_OS_NAME} == "osx" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_osx_script.sh; fi
  88. after_success: |
  89. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
  90. deploy:
  91. provider: releases
  92. api_key:
  93. secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
  94. file:
  95. - open62541-win32.zip
  96. - open62541-win64.zip
  97. - open62541-linux32.tar.gz
  98. - open62541-linux64.tar.gz
  99. - open62541-raspberrypi.tar.gz
  100. - open62541.c
  101. - open62541.h
  102. skip_cleanup: true
  103. on:
  104. repo: open62541/open62541
  105. tags: true
  106. condition: $CC = gcc && $ANALYZE = false