.travis.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. language: c
  2. compiler:
  3. - gcc
  4. env:
  5. global:
  6. #this is the encrypted GITAUTH
  7. - secure: "nSunY54Wp5HkQCHHbKwlwpbaKyqRVIu/0EnhaoJSwhM1wqerQV/E5d/2JelO9/tZgbungAO7wk/fjutRMVc7d378RTIPwS8vHpvZfEoGhCFsLoTOlqESzsZFBup2H5t1lpQ23jRHDOxlLdJy2lz5U+zd1YnYgDXqdDFjegsIYdo="
  8. # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
  9. - secure: "ehswgymGXPM3UINhOOnfSByMnrRNTixeT2vEV+z3kXy3WHew/O1yt9GxaYGrUhJPg4+5chAQgjYmezO1x3/CUKFgeHQUmVTFWEzfy1kL1JVjO+ufYyJDnbY+x3OmyNmMYcef2J5MAuUS2C1KFvIxtLsljVK+gpe4LcylkCIF/3Y="
  10. addons:
  11. coverity_scan:
  12. project:
  13. name: acplt/open62541
  14. description: Open-source OPC UA
  15. notification_email: null@plt.rwth-aachen.de
  16. build_command_prepend: mkdir build && cd build && cmake ..
  17. build_command: make
  18. branch_pattern: coverity_scan
  19. before_install:
  20. - sudo apt-get update -qq
  21. - sudo apt-get install -qq --no-install-recommends build-essential cmake python-lxml graphviz doxygen wget
  22. - wget http://security.ubuntu.com/ubuntu/pool/main/c/check/check_0.9.10-6ubuntu3_amd64.deb
  23. - sudo dpkg -i check_0.9.10-6ubuntu3_amd64.deb
  24. - sudo pip install cpp-coveralls
  25. script:
  26. - mkdir build
  27. - cd build
  28. - cmake -DGENERATE_DOCUMENTATION=ON ..
  29. - echo "Production build"
  30. - make
  31. - echo "Generate documentation"
  32. - make doc
  33. - echo "Debug build and unit tests"
  34. - cmake -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTS=ON -DUSE_GCOV=ON ..
  35. - make && make test
  36. after_success:
  37. - git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541
  38. - rm -rf open62541/doxygen
  39. - cp -r doc open62541/doxygen
  40. - cd open62541/doxygen
  41. - git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  42. - git config --global user.name "Open62541 travis-ci"
  43. - git config --global push.default simple
  44. - git add *
  45. - git commit -am "doxygen updated by travis-ci"
  46. - git push https://$GITAUTH@github.com/acplt/open62541
  47. - cd ..
  48. - cd ..
  49. - rm -rf open62541
  50. - cd ..
  51. - ./tools/.coverity.sh
  52. - coveralls -b src --exclude doc --exclude examples --exclude tests --exclude wrappers -E '.*\.h'