Commit 7144a39a authored by louiz’'s avatar louiz’

Automate the sonar-qube scanner submission in the ci process

parent 1f652542
......@@ -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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment