bitbucket-pipelines.yml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. image: atlassian/default-image:2
  2. pipelines:
  3. default:
  4. - step:
  5. caches:
  6. - git-modules
  7. script:
  8. - add-apt-repository ppa:ubuntu-toolchain-r/test -y
  9. - apt-get update
  10. - apt-get install -y jq gcc-9 g++-9 unzip cmake lib32ncurses5 lib32z1 lib32stdc++6 python3-venv
  11. - update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9
  12. - git submodule update --recursive --init
  13. - source bitbucket-pipelines-dependencies.sh
  14. - ./build_test.sh
  15. - ./build/test/test_EmbeddedProto --gtest_output="xml:build/test/test_details.xml"
  16. - ./code_coverage.sh
  17. - cd build/test
  18. - build-wrapper-linux-x86-64 --out-dir SonarQube-output make clean all
  19. - cd -
  20. - export SONAR_SCANNER_OPTS="-Xmx1024m"
  21. - sonar-scanner -Dproject.settings=sonar-project.properties
  22. definitions:
  23. caches:
  24. git-modules: .git/modules