.travis.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. # Exit travis if on coverity_scan branch and not first build
  84. test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
  85. if [ ${TRAVIS_OS_NAME} == "linux" ]; 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
  86. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
  87. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
  88. script: |
  89. set -e
  90. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_script.sh; fi
  91. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_script.sh; fi
  92. after_success: |
  93. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
  94. # Sleep to flush travis output
  95. echo == Build success ==
  96. sleep 5
  97. after_failure: |
  98. # Sleep to flush travis output
  99. echo == Build failed ==
  100. sleep 5
  101. deploy:
  102. provider: releases
  103. api_key:
  104. secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
  105. file:
  106. - open62541-win32.zip
  107. - open62541-win64.zip
  108. - open62541-linux32.tar.gz
  109. - open62541-linux64.tar.gz
  110. - open62541-raspberrypi.tar.gz
  111. - open62541.c
  112. - open62541.h
  113. skip_cleanup: true
  114. on:
  115. repo: open62541/open62541
  116. tags: true
  117. condition: $CC = gcc && $ANALYZE = false