.travis.yml 4.0 KB

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