diff options
author | louiz’ <louiz@louiz.org> | 2016-10-06 22:00:13 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-06 22:29:47 +0200 |
commit | 5477db7999b00cc6525ea964dbd51049b6fa4c00 (patch) | |
tree | 1d5dc4bd702abc77a052e783e8714355944df79e | |
parent | 954d271d509356ab8042976b9add577150254b64 (diff) | |
download | biboumi-5477db7999b00cc6525ea964dbd51049b6fa4c00.tar.gz biboumi-5477db7999b00cc6525ea964dbd51049b6fa4c00.tar.bz2 biboumi-5477db7999b00cc6525ea964dbd51049b6fa4c00.tar.xz biboumi-5477db7999b00cc6525ea964dbd51049b6fa4c00.zip |
Add a coverity job that runs cov-build and submit the archive to coverity.com
-rw-r--r-- | .gitlab-ci.yml | 12 | ||||
-rw-r--r-- | docker/biboumi-test/fedora/Dockerfile | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dff5a27..7731b2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/docker/biboumi-test/fedora/Dockerfile b/docker/biboumi-test/fedora/Dockerfile index 5370627..fb6dab4 100644 --- a/docker/biboumi-test/fedora/Dockerfile +++ b/docker/biboumi-test/fedora/Dockerfile @@ -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 |