|
1 | 1 | repos: |
2 | | -- repo: local |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.6.0 |
3 | 4 | hooks: |
4 | | - - id: clang-format |
5 | | - name: clang-format |
6 | | - entry: clang-format -i --style=LLVM |
7 | | - language: system |
| 5 | + - id: trailing-whitespace |
| 6 | + - id: end-of-file-fixer |
| 7 | + - id: mixed-line-ending |
| 8 | + - repo: https://github.com/pre-commit/mirrors-clang-format |
| 9 | + rev: v18.1.8 |
| 10 | + hooks: |
| 11 | + - id: clang-format |
| 12 | + args: ['-style=LLVM'] |
8 | 13 | types_or: [c, c++] |
9 | | - require_serial: true |
10 | | - - id: cppcheck |
11 | | - name: cppcheck |
12 | | - entry: cppcheck --error-exitcode=1 --force |
13 | | - language: system |
| 14 | + - repo: local |
| 15 | + hooks: |
| 16 | + - id: cppcheck |
| 17 | + name: Cppcheck |
| 18 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" cppcheck |
| 19 | + language: python |
| 20 | + pass_filenames: false |
14 | 21 | types_or: [c, c++] |
15 | | - - id: custom-checks |
16 | | - name: Build, Test, Valgrind, Coverage, Shields |
17 | | - entry: ./scripts/run_custom_checks.sh |
18 | | - language: system |
| 22 | + - id: build-gcc |
| 23 | + name: Build (GCC) |
| 24 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build gcc |
| 25 | + language: python |
| 26 | + pass_filenames: false |
| 27 | + - id: test-gcc |
| 28 | + name: Test (GCC) |
| 29 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test gcc |
| 30 | + language: python |
| 31 | + pass_filenames: false |
| 32 | + - id: build-clang |
| 33 | + name: Build (Clang) |
| 34 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build clang |
| 35 | + language: python |
| 36 | + pass_filenames: false |
| 37 | + - id: test-clang |
| 38 | + name: Test (Clang) |
| 39 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test clang |
| 40 | + language: python |
| 41 | + pass_filenames: false |
| 42 | + - id: build-msvc-wine |
| 43 | + name: Build (MSVC Wine) |
| 44 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build msvc_wine |
| 45 | + language: python |
| 46 | + pass_filenames: false |
| 47 | + - id: test-msvc-wine |
| 48 | + name: Test (MSVC Wine) |
| 49 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test msvc_wine |
| 50 | + language: python |
| 51 | + pass_filenames: false |
| 52 | + - id: build-msvc |
| 53 | + name: Build (MSVC) |
| 54 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build msvc |
| 55 | + language: python |
| 56 | + pass_filenames: false |
| 57 | + - id: test-msvc |
| 58 | + name: Test (MSVC) |
| 59 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test msvc |
| 60 | + language: python |
| 61 | + pass_filenames: false |
| 62 | + - id: build-mingw |
| 63 | + name: Build (MinGW) |
| 64 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" build mingw |
| 65 | + language: python |
| 66 | + pass_filenames: false |
| 67 | + - id: test-mingw |
| 68 | + name: Test (MinGW) |
| 69 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" test mingw |
| 70 | + language: python |
| 71 | + pass_filenames: false |
| 72 | + - id: valgrind |
| 73 | + name: Valgrind (GCC) |
| 74 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" valgrind gcc |
| 75 | + language: python |
| 76 | + pass_filenames: false |
| 77 | + - id: update-shields |
| 78 | + name: Update README Shields |
| 79 | + entry: python3 -c "import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/SamuelMarks/c-ci/master/precommit_matrix.py').read())" shields |
| 80 | + language: python |
| 81 | + additional_dependencies: [gcovr] |
19 | 82 | pass_filenames: false |
0 commit comments