.travis.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 add-apt-repository ppa:kalakris/cmake -y
  22. - sudo apt-get update -qq
  23. #- sudo apt-get install -qq gcc-4.8
  24. - sudo apt-get install -qq --no-install-recommends build-essential cmake python-lxml graphviz doxygen wget
  25. - sudo apt-get install libc6-i386 libc6-dev-i386
  26. - wget http://security.ubuntu.com/ubuntu/pool/main/c/check/check_0.9.10-6ubuntu3_amd64.deb
  27. - sudo dpkg -i check_0.9.10-6ubuntu3_amd64.deb
  28. - sudo dpkg --add-architecture i386
  29. - wget http://security.ubuntu.com/ubuntu/pool/main/c/check/check_0.9.10-6ubuntu3_i386.deb
  30. - sudo dpkg -i check_0.9.10-6ubuntu3_i386.deb
  31. - sudo pip install cpp-coveralls
  32. #- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
  33. #- sudo update-alternatives --config gcc
  34. script:
  35. - echo "Checking the applicability of patches"
  36. - ./tools/.checkPorts.sh
  37. - echo "Testing builds"
  38. - mkdir -p build
  39. - cd build
  40. - echo "Only needed profile"
  41. - cmake -DTYPES_ONLY_NEEDED=ON ..
  42. - make
  43. - cd .. && rm build -rf && mkdir -p build && cd build
  44. - echo "Debug build and unit tests (32 bit)"
  45. - CFLAGS=-m32 CXXFLAGS=-m32 cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UNIT_TESTS=ON -DENABLE_COVERAGE=ON ..
  46. - make && make test
  47. - cd .. && rm build -rf && mkdir -p build && cd build
  48. - cmake -DGENERATE_DOCUMENTATION=ON ..
  49. - echo "Production build"
  50. - make
  51. - echo "Generate documentation"
  52. - make doc
  53. - echo "Debug build and unit tests (64 bit) & coverage testing"
  54. - make clean
  55. - cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UNIT_TESTS=ON -DENABLE_COVERAGE=ON ..
  56. - make && make test
  57. - coveralls --gcov /usr/bin/gcov-4.8 -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../
  58. - cd ..
  59. after_success:
  60. - ./tools/.deployDoxygen.sh
  61. - ./tools/.coverity.sh