.travis.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 add-apt-repository ppa:ubuntu-toolchain-r/test -y
  21. - sudo apt-get update -qq
  22. - sudo apt-get install -qq gcc-4.8
  23. - sudo apt-get install -qq --no-install-recommends build-essential cmake python-lxml graphviz doxygen wget
  24. - wget http://security.ubuntu.com/ubuntu/pool/main/c/check/check_0.9.10-6ubuntu3_amd64.deb
  25. - sudo dpkg -i check_0.9.10-6ubuntu3_amd64.deb
  26. - sudo pip install cpp-coveralls
  27. - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
  28. - sudo update-alternatives --config gcc
  29. script:
  30. - mkdir -p build
  31. - cd build
  32. - cmake -DGENERATE_DOCUMENTATION=ON ..
  33. - echo "Production build"
  34. - make
  35. - echo "Generate documentation"
  36. - make doc
  37. - echo "Debug build and unit tests"
  38. - make clean
  39. - cmake -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTS=ON -DENABLE_COVERAGE=ON ..
  40. - make && make test
  41. after_success:
  42. - git clone --depth=50 -b gh-pages https://$GITAUTH@github.com/acplt/open62541
  43. - rm -rf open62541/doxygen
  44. - cp -r doc open62541/doxygen
  45. - cd open62541/doxygen
  46. - git config --global user.email "open62541-travis-ci@users.noreply.github.com"
  47. - git config --global user.name "Open62541 travis-ci"
  48. - git config --global push.default simple
  49. - git add *
  50. - git commit -am "doxygen updated by travis-ci"
  51. - git push https://$GITAUTH@github.com/acplt/open62541
  52. - cd .. && cd ..
  53. - rm -rf open62541
  54. - coveralls --gcov /usr/bin/gcov-4.8 -E '.*\.h' -r ../
  55. - cd ..
  56. - ./tools/.coverity.sh