File tree 5 files changed +11
-5
lines changed
5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,5 @@ stamp-h1
33
33
* .exe
34
34
.idea
35
35
cmake-build-debug /
36
+ * .log
37
+ * .trs
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ script:
29
29
- if [ "$JANSSON_BUILD_METHOD" = "cmake" ]; then mkdir build && cd build && cmake $JANSSON_CMAKE_OPTIONS .. && cmake --build . && ctest --output-on-failure; fi
30
30
- if [ "$JANSSON_BUILD_METHOD" = "coverage" ]; then mkdir build && cd build && cmake $JANSSON_CMAKE_OPTIONS .. && cmake --build . && cmake --build . --target coveralls; fi
31
31
- if [ "$JANSSON_BUILD_METHOD" = "fuzzer" ]; then ./test/ossfuzz/travisoss.sh; fi
32
- - if [ "$JANSSON_BUILD_METHOD" = "lint" ]; then ./scripts/clang-format-ci 9; fi
32
+ - if [ "$JANSSON_BUILD_METHOD" = "lint" ]; then ./scripts/clang-format-check 9; fi
Original file line number Diff line number Diff line change 8
8
9
9
pkgconfigdir = $(libdir ) /pkgconfig
10
10
pkgconfig_DATA = jansson.pc
11
+
12
+ TESTS = scripts/clang-format-check
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ if [ -n "$1" ]; then
5
5
clangformat=" clang-format-$1 "
6
6
fi
7
7
8
+ if ! type $clangformat > /dev/null; then
9
+ # clang-format not found. If running tests, mark this test as
10
+ # skipped.
11
+ exit 77
12
+ fi
13
+
8
14
errors=0
9
15
paths=$( find . -type f -a ' (' -name ' *.c' -o -name ' *.h' ' )' )
10
16
for path in $paths ; do
Original file line number Diff line number Diff line change @@ -18,7 +18,3 @@ suites/api/test_simple
18
18
suites /api /test_sprintf
19
19
suites /api /test_unpack
20
20
suites /api /test_version
21
- run-suites.log
22
- run-suites.trs
23
- test-suite.log
24
-
You can’t perform that action at this time.
0 commit comments