bitbucket-pipelines.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. image: atlassian/default-image:2
  2. clone:
  3. depth: full
  4. pipelines:
  5. default:
  6. - step:
  7. caches:
  8. - git-modules
  9. script:
  10. - add-apt-repository ppa:ubuntu-toolchain-r/test -y
  11. - apt-get update
  12. - apt-get install -y jq gcc-9 g++-9 unzip cmake lib32ncurses5 lib32z1 lib32stdc++6 python3-venv
  13. - 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
  14. - git submodule update --recursive --init
  15. - source bitbucket-pipelines-dependencies.sh
  16. - ./build_test.sh
  17. - ./code_coverage.sh
  18. - cd build/test
  19. - build-wrapper-linux-x86-64 --out-dir SonarQube-output make clean all
  20. - cd -
  21. - export SONAR_SCANNER_OPTS="-Xmx1024m"
  22. - sonar-scanner -Dproject.settings=sonar-project.properties -Dsonar.login=$SONAR_LOGIN
  23. definitions:
  24. caches:
  25. git-modules: .git/modules