~singpolyma/biboumi

5477db7999b00cc6525ea964dbd51049b6fa4c00 — louiz’ 6 years ago 954d271
Add a coverity job that runs cov-build and submit the archive to coverity.com
2 files changed, 13 insertions(+), 1 deletions(-)

M .gitlab-ci.yml
M docker/biboumi-test/fedora/Dockerfile
M .gitlab-ci.yml => .gitlab-ci.yml +11 -1
@@ 101,4 101,14 @@ test:debian:
test:fedora:
  stage: test
  image: biboumi-test-fedora:latest
  <<: *basic_test
\ No newline at end of file
  <<: *basic_test

test:coverity:
  stage: test
  image: biboumi-test-fedora:latest
  script:
    - export PATH=$PATH:~/coverity/bin
    - cmake .. -DWITHOUT_SYSTEMD=1
    - cov-build --dir cov-int   make biboumi test_suite -j$(nproc)
    - 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

M docker/biboumi-test/fedora/Dockerfile => docker/biboumi-test/fedora/Dockerfile +2 -0
@@ 59,6 59,8 @@ RUN rm -rf /charybdis

RUN su - tester -c "echo export LANG=en_GB.utf-8 >> /home/tester/.bashrc"

COPY coverity /home/tester/coverity

WORKDIR /home/tester
USER tester