[gimp/wip/Jehan/improve-cppcheck] gitlab-ci: ignore a bunch of directories.



commit 7f004e95bd49ed663ea1fcc665f477c316a039fc
Author: Jehan <jehan girinstud io>
Date:   Wed Apr 29 14:05:31 2020 +0200

    gitlab-ci: ignore a bunch of directories.
    
    Problem with the CI is that the source is straight in our base directory
    and therefore installed dependency files as well as cache or built files
    are in subfolders.
    Let's try to ignore as much as I can see. This should avoid a bunch of
    warning and errors during report generation.

 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 69d110b28d..d33aba9a7a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -349,7 +349,8 @@ cppcheck:
     - apt-get update
     - apt-get install -y cppcheck
   script:
-    - cppcheck -q -j8 --enable=all --force --output-file=cppcheck.xml --xml --xml-version=2 .
+    - cppcheck -q -j8 --enable=all --force --output-file=cppcheck.xml --xml --xml-version=2
+        -i _build -i _deps -i gimp-prefix -i .local -i .cache .
     - mkdir report
     - cppcheck-htmlreport --source-dir=. --title=gimp --file=cppcheck.xml --report-dir=report
   artifacts:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]