.travis.yml 2.7 KB

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