.travis.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. matrix:
  22. exclude:
  23. # This excludes OSX GCC builds.
  24. - os: osx
  25. compiler: gcc
  26. - os: osx
  27. env: ANALYZE=true
  28. addons:
  29. apt:
  30. sources:
  31. # see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
  32. packages:
  33. - binutils-mingw-w64-i686
  34. - build-essential
  35. - cmake
  36. - gcc-multilib
  37. - g++-multilib
  38. - valgrind
  39. - check
  40. - cppcheck
  41. - mingw-w64
  42. - g++-mingw-w64-x86-64
  43. - g++-mingw-w64-i686
  44. - libc6-dbg # for valgrind compilation
  45. - libsubunit-dev
  46. - libx11-dev
  47. - wget
  48. - xutils-dev
  49. - zip
  50. - graphviz
  51. - texlive-latex-recommended
  52. - texlive-latex-extra
  53. - texlive-fonts-recommended
  54. coverity_scan:
  55. project:
  56. name: "open62541/open62541"
  57. description: "Build submitted by Travis"
  58. notification_email: null@plt.rwth-aachen.de
  59. build_command_prepend: "mkdir build && cd build && cmake .."
  60. build_command: "make"
  61. branch_pattern: coverity_scan
  62. cache:
  63. pip: true
  64. apt: true
  65. directories:
  66. - $HOME/install
  67. before_install:
  68. - 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
  69. - if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
  70. - if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
  71. script:
  72. - if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_linux_script.sh; fi
  73. - if [ ${TRAVIS_OS_NAME} == "osx" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_osx_script.sh; fi
  74. after_success:
  75. - if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
  76. deploy:
  77. provider: releases
  78. api_key:
  79. secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
  80. file:
  81. - open62541-win32.zip
  82. - open62541-win64.zip
  83. - open62541-linux32.tar.gz
  84. - open62541-linux64.tar.gz
  85. - open62541-raspberrypi.tar.gz
  86. - open62541.c
  87. - open62541.h
  88. skip_cleanup: true
  89. on:
  90. repo: open62541/open62541
  91. tags: true
  92. condition: $CC = gcc && $ANALYZE = false