Skip to content

Commit 833d974

Browse files
committed
ci: correcting C file regex
1 parent d87a5a0 commit 833d974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ formatting:
3838
- pacman -Sy --noconfirm
3939
- pacman -S clang diffutils gawk grep --noconfirm
4040
script:
41-
- for i in $( du -a src/ tests | awk '{print $2}' | grep -i ".c$" ); do
41+
- for i in $( du -a src/ tests | awk '{print $2}' | grep -i "[.]c$" ); do
4242
- clang-format $i > temp.txt
4343
- cmp $i temp.txt
4444
- done
@@ -53,7 +53,7 @@ linting:
5353
- pacman -Sy --noconfirm
5454
- pacman -S clang cunit gawk grep --noconfirm
5555
script:
56-
- for i in $( du -a src/ tests | awk '{print $2}' | grep -i ".c$" ); do
56+
- for i in $( du -a src/ tests | awk '{print $2}' | grep -i "[.]c$" ); do
5757
- clang-tidy $i --checks="*,-llvmlibc-restrict-system-libc-headers,-altera-id-dependent-backward-branch,-altera-unroll-loops" --warnings-as-errors="*"
5858
- done
5959
rules:

0 commit comments

Comments
 (0)