Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (78 loc) · 4.49 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
78 lines (78 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
hooks:
- id: clang-format
args: ['-style=LLVM']
types_or: [c, c++]
- repo: local
hooks:
- id: cppcheck
name: Cppcheck
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" cppcheck
language: python
pass_filenames: false
types_or: [c, c++]
- id: build-gcc
name: Build (GCC)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build gcc
language: python
pass_filenames: false
- id: test-gcc
name: Test (GCC)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test gcc
language: python
pass_filenames: false
- id: build-clang
name: Build (Clang)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build clang
language: python
pass_filenames: false
- id: test-clang
name: Test (Clang)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test clang
language: python
pass_filenames: false
- id: build-msvc
name: Build (MSVC)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build msvc
language: python
pass_filenames: false
- id: test-msvc
name: Test (MSVC)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test msvc
language: python
pass_filenames: false
- id: build-mingw
name: Build (MinGW)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build mingw
language: python
pass_filenames: false
- id: test-mingw
name: Test (MinGW)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test mingw
language: python
pass_filenames: false
- id: valgrind
name: Valgrind (GCC)
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" valgrind gcc
language: python
pass_filenames: false
- id: check-no-discard-void-clang
name: Check no-discard void casts (libclang)
entry: python -c "import os, sys, urllib.request; p = next((x for x in ('/opt/homebrew/opt/llvm/lib/libclang.dylib', '/opt/homebrew/lib/libclang.dylib', '/usr/local/lib/libclang.dylib', '/Library/Developer/CommandLineTools/usr/lib/libclang.dylib') if os.path.exists(x)), None); bdir = next((d for d in ('build', 'cmake-build-debug', 'build_gcc', 'build_fallback') if os.path.exists(d + '/compile_commands.json')), None); args = [sys.argv[0]]; (args.extend(['--libclang-path', p]) if p and '--libclang-path' not in sys.argv else None); (args.extend(['--build-dir', bdir]) if bdir and '--build-dir' not in sys.argv else None); args.extend(sys.argv[1:]); sys.argv = args; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/refs/heads/master/precommit_hooks/check_no_discard_void_clang.py').read().decode('utf-8'))"
language: python
types_or: [c, c++]
additional_dependencies: [libclang]
- id: update-shields
name: Update README Shields
entry: python -c "import urllib.request; exec(urllib.request.urlopen('https://github.com/raw/SamuelMarks/c-ci/master/precommit_matrix.py').read())" shields
language: python
additional_dependencies: [gcovr]
pass_filenames: false