~singpolyma/biboumi

7144a39a1ef35e9962236f7f041a681bc62ea5ae — louiz’ 6 years ago 1f65254
Automate the sonar-qube scanner submission in the ci process
2 files changed, 9 insertions(+), 0 deletions(-)

M .gitlab-ci.yml
M docker/biboumi-test/fedora/Dockerfile
M .gitlab-ci.yml => .gitlab-ci.yml +8 -0
@@ 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

M docker/biboumi-test/fedora/Dockerfile => docker/biboumi-test/fedora/Dockerfile +1 -0
@@ 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