]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.gitlab-ci.yml: add caching to cppcheck
authorAlexander Sosedkin <asosedkin@redhat.com>
Thu, 21 Oct 2021 10:46:56 +0000 (12:46 +0200)
committerAlexander Sosedkin <asosedkin@redhat.com>
Wed, 27 Oct 2021 14:03:40 +0000 (16:03 +0200)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
.gitlab-ci.yml

index c22fc289613d86599e2ec788fa2a15ef5f3e3310..932603b4963874d924b3a00a9c5920d2fc3275f5 100644 (file)
@@ -533,9 +533,13 @@ fedora-static-analyzers/test:
     - fedora-static-analyzers/build
   needs:
     - fedora-static-analyzers/build
+  cache:
+    paths:
+      - cache/cppcheck
   script:
-    - cppcheck --force -q -Ilib/includes -Igl/ -Ilib/ -I. --error-exitcode=1 lib/ -i lib/unistring -i lib/minitasn1 -i lib/nettle/backport -i lib/nettle/ecc -j2 $CPPCHECK_OPTIONS
-    - cppcheck --force -q -Ilib/includes -Igl/ -Ilibdane/ -I. --error-exitcode=1 libdane/ -j2 $CPPCHECK_OPTIONS
+    - mkdir -p cache/cppcheck
+    - cppcheck --cppcheck-build-dir=cache/cppcheck --force -q -Ilib/includes -Igl/ -Ilib/ -I. --error-exitcode=1 lib/ -i lib/unistring -i lib/minitasn1 -i lib/nettle/backport -i lib/nettle/ecc -j2 $CPPCHECK_OPTIONS
+    - cppcheck --cppcheck-build-dir=cache/cppcheck --force -q -Ilib/includes -Igl/ -Ilibdane/ -I. --error-exitcode=1 libdane/ -j2 $CPPCHECK_OPTIONS
 
 # TODO this does not work, so we keep using old job doc-dist.Fedora
 # Keeping it here until I figure it out.