.travis.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. # disable homebrew auto update which takes a lot of time
  37. env: HOMEBREW_NO_AUTO_UPDATE=1
  38. cache:
  39. directories:
  40. - $HOME/Library/Caches/Homebrew
  41. addons:
  42. apt:
  43. sources:
  44. # see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  45. packages:
  46. - binutils-mingw-w64-i686
  47. - build-essential
  48. - check
  49. - cmake
  50. - cppcheck
  51. - gcc-multilib
  52. - g++-mingw-w64-i686
  53. - g++-mingw-w64-x86-64
  54. - g++-multilib
  55. - graphviz
  56. - libsubunit-dev
  57. - libx11-dev
  58. - mingw-w64
  59. - texlive-fonts-recommended
  60. - texlive-latex-extra
  61. - texlive-latex-recommended
  62. - valgrind
  63. - wget
  64. - xutils-dev
  65. - zip
  66. coverity_scan:
  67. project:
  68. name: "open62541/open62541"
  69. description: "Build submitted by Travis"
  70. notification_email: null@plt.rwth-aachen.de
  71. build_command_prepend: "mkdir build && cd build && cmake .."
  72. build_command: "make"
  73. branch_pattern: coverity_scan
  74. cache:
  75. pip: true
  76. apt: true
  77. directories:
  78. - $HOME/install
  79. - $HOME/.cache/pip
  80. # combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
  81. before_install: |
  82. set -e
  83. 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
  84. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
  85. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
  86. script: |
  87. set -e
  88. if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_linux_script.sh; fi
  89. if [ ${TRAVIS_OS_NAME} == "osx" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_osx_script.sh; fi
  90. after_success: |
  91. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
  92. deploy:
  93. provider: releases
  94. api_key:
  95. secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
  96. file:
  97. - open62541-win32.zip
  98. - open62541-win64.zip
  99. - open62541-linux32.tar.gz
  100. - open62541-linux64.tar.gz
  101. - open62541-raspberrypi.tar.gz
  102. - open62541.c
  103. - open62541.h
  104. skip_cleanup: true
  105. on:
  106. repo: open62541/open62541
  107. tags: true
  108. condition: $CC = gcc && $ANALYZE = false