diff options
author | louiz’ <louiz@louiz.org> | 2016-10-31 15:45:56 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-31 15:45:56 +0100 |
commit | 7144a39a1ef35e9962236f7f041a681bc62ea5ae (patch) | |
tree | ea06bbe256f477dec304d3110b01296c03127fd8 | |
parent | 1f652542313a43e328e01fd92171ea0555784846 (diff) | |
download | biboumi-7144a39a1ef35e9962236f7f041a681bc62ea5ae.tar.gz biboumi-7144a39a1ef35e9962236f7f041a681bc62ea5ae.tar.bz2 biboumi-7144a39a1ef35e9962236f7f041a681bc62ea5ae.tar.xz biboumi-7144a39a1ef35e9962236f7f041a681bc62ea5ae.zip |
Automate the sonar-qube scanner submission in the ci process
-rw-r--r-- | .gitlab-ci.yml | 8 | ||||
-rw-r--r-- | docker/biboumi-test/fedora/Dockerfile | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f0509ef..035cf3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,3 +140,11 @@ test:coverity: - cov-build --dir cov-int make biboumi test_suite -j$(nproc || echo 1) - tar czvf biboumi_coverity.tgz cov-int - curl --form token=$COVERITY_TOKEN --form email=louiz@louiz.org --form file=@biboumi_coverity.tgz --form version="$(git rev-parse --short HEAD)" --form description="Automatic submission by gitlab-ci" https://scan.coverity.com/builds?project=louiz%2Fbiboumi + +test:sonar-qube: + stage: test + image: biboumi-test-fedora:latest + script: + - cmake .. + - ~/sonar-scanner/bin/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir ./bw-outputs make biboumi test_suite + - ~/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_LOGIN diff --git a/docker/biboumi-test/fedora/Dockerfile b/docker/biboumi-test/fedora/Dockerfile index fb6dab4..0d0a9ea 100644 --- a/docker/biboumi-test/fedora/Dockerfile +++ b/docker/biboumi-test/fedora/Dockerfile @@ -60,6 +60,7 @@ RUN rm -rf /charybdis RUN su - tester -c "echo export LANG=en_GB.utf-8 >> /home/tester/.bashrc" COPY coverity /home/tester/coverity +COPY sonar-scanner-2.8 /home/tester/sonar-scanner WORKDIR /home/tester USER tester |