forked from Embedded-AMS/EmbeddedProto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
33 lines (26 loc) · 1.09 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: atlassian/default-image:3
clone:
depth: full
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 lib32ncurses6 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
- chmod +x build_test.sh code_coverage.sh
- ./build_test.sh
- ./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 -Dsonar.login=$SONAR_LOGIN
definitions:
caches:
git-modules: .git/modules