.travis.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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:
  17. - ANALYZE=false
  18. - PYTHON=python2
  19. - os: linux
  20. compiler: gcc
  21. env: ANALYZE=true
  22. - os: linux
  23. compiler: gcc
  24. env: DOCKER=true
  25. services:
  26. - docker
  27. - os: linux
  28. compiler: clang
  29. env:
  30. - ANALYZE=false
  31. - PYTHON=python2
  32. - os: linux
  33. compiler: clang
  34. env:
  35. - ANALYZE=false
  36. - PYTHON=python3
  37. - os: linux
  38. compiler: clang
  39. env: ANALYZE=true
  40. - os: linux
  41. compiler: clang
  42. env: FUZZER=true
  43. - os: osx
  44. compiler: clang
  45. # disable homebrew auto update which takes a lot of time
  46. env: HOMEBREW_NO_AUTO_UPDATE=1
  47. cache:
  48. directories:
  49. - $HOME/Library/Caches/Homebrew
  50. addons:
  51. apt:
  52. sources:
  53. # see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  54. packages:
  55. - binutils-mingw-w64-i686
  56. - build-essential
  57. - check
  58. - cmake
  59. - cppcheck
  60. - gcc-multilib
  61. - g++-mingw-w64-i686
  62. - g++-mingw-w64-x86-64
  63. - g++-multilib
  64. - graphviz
  65. - libsubunit-dev
  66. - libx11-dev
  67. - mingw-w64
  68. - python-six
  69. - python3-six
  70. - texlive-fonts-recommended
  71. - texlive-latex-extra
  72. - texlive-latex-recommended
  73. - valgrind
  74. - wget
  75. - xutils-dev
  76. - zip
  77. coverity_scan:
  78. project:
  79. name: "open62541/open62541"
  80. description: "Build submitted by Travis"
  81. notification_email: null@plt.rwth-aachen.de
  82. build_command_prepend: "mkdir build && cd build && cmake .."
  83. build_command: "make"
  84. branch_pattern: coverity_scan
  85. cache:
  86. pip: true
  87. apt: true
  88. directories:
  89. - $HOME/install
  90. - $HOME/.cache/pip
  91. # combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
  92. before_install: |
  93. set -e
  94. # Exit travis if on coverity_scan branch and not first build
  95. test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
  96. 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
  97. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
  98. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
  99. script: |
  100. set -e
  101. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_script.sh; fi
  102. if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_script.sh; fi
  103. after_success: |
  104. if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
  105. # Sleep to flush travis output
  106. echo == Build success ==
  107. sleep 5
  108. after_failure: |
  109. # Sleep to flush travis output
  110. echo == Build failed ==
  111. sleep 5
  112. deploy:
  113. provider: releases
  114. api_key:
  115. secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
  116. file:
  117. - open62541-win32.zip
  118. - open62541-win64.zip
  119. - open62541-linux32.tar.gz
  120. - open62541-linux64.tar.gz
  121. - open62541-raspberrypi.tar.gz
  122. - open62541.c
  123. - open62541.h
  124. skip_cleanup: true
  125. on:
  126. repo: open62541/open62541
  127. tags: true
  128. condition: $CC = gcc && $ANALYZE = false