diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bae29090e66b42291fe136923584dad23a886c2..e8d195ad149297255def468d31ee543007be824b 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