From 3252b26d5a97957a601abd46b94075af73b718bf Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Fri, 15 Sep 2017 13:30:11 +0200
Subject: [PATCH] avoid removing cblas/lapacke.h files but exclude it from
 sources list of cppcheck

---
 .gitlab-ci.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bae29090..e8d195ad1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -73,10 +73,9 @@ analysis:
     - cd ..
     - genhtml -o coverage chameleon.lcov
     - lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml
-    - rm coreblas/include/cblas.h coreblas/include/lapacke.h coreblas/include/lapacke_config.h coreblas/include/lapacke_mangling.h
-    - export SOURCES_TO_ANALYZE=`bash -c 'find ./build/coreblas ./build/example ./build/include ./build/runtime ./build/compute ./build/control ./build/hqr ./build/testing ./build/timing -regex ".*\.c\|.*\.h" |xargs && \
-                                 find . -path ./build -prune -o -regex "^[^z]*\.c" -print && \
-                                 find . -path ./build -prune -o -regex "^[^z]*\.h" -print'`
+    - export SOURCES_TO_ANALYZE=`bash -c 'find ./build -type d -name CMakeFiles -prune -o -type d -name Testing -prune -o -type f -regex ".*\.c\|.*\.h" -print && \
+                                          find . -path ./build -prune -o -type f -regex "^[^z]*\.c" -print && \
+                                          find . -path ./build -prune -o -type f -regex "^[^z]*\.h" ! -name 'lapacke*.h' ! -name 'cblas*.h' -print | xargs'`
     - export UNDEFINITIONS="-UCHAMELEON_USE_CUBLAS_V2 -UCHAMELEON_USE_OPENCL"
     - cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} ${SOURCES_TO_ANALYZE} ${SOURCES_TO_EXCLUDE} 2> chameleon-cppcheck.xml
     - rats -w 3 --xml ${SOURCES_TO_ANALYZE} > chameleon-rats.xml
-- 
GitLab