| 123456789101112131415161718192021222324252627282930 |
- image: atlassian/default-image:2
- pipelines:
- default:
- - step:
- caches:
- - git-modules
- script:
- - add-apt-repository ppa:ubuntu-toolchain-r/test -y
- - apt-get update
- - apt-get install -y jq gcc-9 g++-9 unzip cmake lib32ncurses5 lib32z1 lib32stdc++6 python3-venv
- - 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
- - git submodule update --recursive --init
- - source bitbucket-pipelines-dependencies.sh
- - ./build_test.sh
- - ./build/test/test_EmbeddedProto --gtest_output="xml:build/test/test_details.xml"
- - ./code_coverage.sh
- - cd build/test
- - build-wrapper-linux-x86-64 --out-dir SonarQube-output make clean all
-
- - cd -
- - export SONAR_SCANNER_OPTS="-Xmx1024m"
- - sonar-scanner -Dproject.settings=sonar-project.properties
-
- definitions:
- caches:
- git-modules: .git/modules
|