.travis.yml 3.4 KB

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