.travis.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 build-essential cmake python-lxml graphviz doxygen check
  22. - sudo pip install cpp-coveralls
  23. script:
  24. - mkdir build
  25. - cd build
  26. - cmake -DGENERATE_DOCUMENTATION=ON ..
  27. - echo "Production build"
  28. - make
  29. - echo "Generate documentation"
  30. - make doc
  31. - echo "Debug build and unit tests"
  32. - cmake -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTS=ON -DUSE_GCOV=ON ..
  33. - make && make test
  34. after_success:
  35. - git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541
  36. - rm -rf open62541/doxygen
  37. - cp -r doc open62541/doxygen
  38. - cd open62541/doxygen
  39. - git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  40. - git config --global user.name "Open62541 travis-ci"
  41. - git config --global push.default simple
  42. - git add *
  43. - git commit -am "doxygen updated by travis-ci"
  44. - git push https://$GITAUTH@github.com/acplt/open62541
  45. - cd ..
  46. - cd ..
  47. - rm -rf open62541
  48. - cd ..
  49. - ./tools/.coverity.sh
  50. - coveralls -b src --exclude doc --exclude examples --exclude tests --exclude wrappers -E '.*\.h'