Skip to content

Commit

Permalink
[fix] global: fix clang-clazy test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Feb 24, 2022
1 parent efaf297 commit 49b974a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions FastTrack.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ SUBDIRS += \
src/FastTrack.pro \
src/FastTrack-Cli.pro \
test/Test.pro

SKIP_TEST {
SUBDIRS -= \
test/Test.pro
}
7 changes: 4 additions & 3 deletions code_check.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash

make distclean -s
qmake6 CONFIG+="debug NO_WEB" QMAKE_CXXFLAGS+=-w -spec linux-clang QMAKE_CXX="clazy" FastTrack.pro

export CLAZY_CHECKS="level2"
export CLAZY_EXPORT_FIXES=ON
export CLAZY_HEADER_FILTER="./src/"
export CLAZY_IGNORE_DIRS="./test/*"
export CLAZY_HEADER_FILTER="./src/"

qmake6 CONFIG+="debug NO_WEB SKIP_TEST" QMAKE_CXXFLAGS+=-w -spec linux-clang QMAKE_CXX="clazy" FastTrack.pro

if [ "$1" = "fail" ]; then
VAR=$(make -s 2>&1 >/dev/null | grep "warning")
Expand Down

0 comments on commit 49b974a

Please sign in to comment.