This repository was archived by the owner on Oct 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ matrix:
49
49
--cap-add SYS_PTRACE
50
50
edomora97/task-maker-builder-$TOOLCHAIN:latest
51
51
/build/tools/compile_and_lint.sh
52
- - os : osx
52
+ - if : NOT branch =~ /^v.*/
53
+ os : osx
53
54
env :
54
55
- WHAT=test
55
56
- TOOLCHAIN=osx
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ SCRIPTPATH=$( dirname $( readlink -f $0 ) )
4
+ WORKDIR=${SCRIPTPATH} /..
5
+
6
+ cd $WORKDIR
7
+
8
+ FILES=$( git diff-tree --no-commit-id --name-only -r HEAD | grep -P " \.[ch]pp" )
9
+ SKIPPEDFILES=(cpp/util/sha256.hpp cpp/util/sha256.cpp)
10
+
11
+ ret=0
12
+ for file in ${FILES} ; do
13
+ if [[ " ${SKIPPEDFILES[@]} " =~ " ${file} " ]]; then
14
+ echo " == Skipped ${file} =="
15
+ continue
16
+ fi
17
+ $SCRIPTPATH /lint-cpp-file $file
18
+ ret=$(( ret+ $? ))
19
+ done
20
+
21
+ exit $ret
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ python3 -m venv /tmp/venv --system-site-packages
6
6
. /tmp/venv/bin/activate
7
7
cmake -H. -Bbuild -DHUNTER_ENABLED=OFF -DTRAVIS=ON
8
8
cmake --build build
9
- ./hooks/lint-all
9
+ ./hooks/lint-head
You can’t perform that action at this time.
0 commit comments