Add a coverity job that runs cov-build and submit the archive to coverity.com
This commit is contained in:
@@ -102,3 +102,13 @@ test:fedora:
|
|||||||
stage: test
|
stage: test
|
||||||
image: biboumi-test-fedora:latest
|
image: biboumi-test-fedora:latest
|
||||||
<<: *basic_test
|
<<: *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
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ RUN rm -rf /charybdis
|
|||||||
|
|
||||||
RUN su - tester -c "echo export LANG=en_GB.utf-8 >> /home/tester/.bashrc"
|
RUN su - tester -c "echo export LANG=en_GB.utf-8 >> /home/tester/.bashrc"
|
||||||
|
|
||||||
|
COPY coverity /home/tester/coverity
|
||||||
|
|
||||||
WORKDIR /home/tester
|
WORKDIR /home/tester
|
||||||
USER tester
|
USER tester
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user