| 1 | fail_fast: true |
| 2 | ci: |
| 3 | autofix_commit_msg: | |
| 4 | [pre-commit.ci] auto fixes from pre-commit.com hooks |
| 5 | |
| 6 | for more information, see https://pre-commit.ci |
| 7 | autofix_prs: true |
| 8 | autoupdate_branch: "" |
| 9 | autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" |
| 10 | autoupdate_schedule: weekly |
| 11 | skip: [clang-format, meson-test-debug, clang-tidy] |
| 12 | repos: |
| 13 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 | rev: v6.0.0 |
| 15 | hooks: |
| 16 | - id: trailing-whitespace |
| 17 | - id: end-of-file-fixer |
| 18 | - id: check-yaml |
| 19 | - id: check-added-large-files |
| 20 | - id: check-merge-conflict |
| 21 | - repo: https://github.com/codespell-project/codespell |
| 22 | rev: v2.4.2 |
| 23 | hooks: |
| 24 | - id: codespell |
| 25 | - repo: https://github.com/executablebooks/mdformat |
| 26 | rev: 1.0.0 |
| 27 | hooks: |
| 28 | - id: mdformat |
| 29 | args: [--wrap, "80"] |
| 30 | additional_dependencies: |
| 31 | - mdformat-gfm |
| 32 | - mdformat-gfm-alerts |
| 33 | - repo: https://github.com/google/yamlfmt |
| 34 | rev: v0.21.0 |
| 35 | hooks: |
| 36 | - id: yamlfmt |
| 37 | - repo: local |
| 38 | hooks: |
| 39 | - id: clang-format |
| 40 | name: clang-format |
| 41 | entry: clang-format -i |
| 42 | language: system |
| 43 | files: \.(c|h)$ |
| 44 | - id: meson-test-debug |
| 45 | name: Meson Test (Debug) |
| 46 | entry: | |
| 47 | bash -c ' |
| 48 | if [ ! -d .pre-commit-builds/default-debug ]; then |
| 49 | meson setup .pre-commit-builds/default-debug --buildtype=debug |
| 50 | fi && |
| 51 | meson test -C .pre-commit-builds/default-debug |
| 52 | ' |
| 53 | language: system |
| 54 | pass_filenames: false |
| 55 | files: \.(c|h)$ |
| 56 | - id: all-tests-gcc |
| 57 | name: All Tests (GCC) |
| 58 | entry: | |
| 59 | bash -c ' |
| 60 | if [ ! -d .pre-commit-builds/gcc-release ]; then |
| 61 | CC=gcc meson setup .pre-commit-builds/gcc-release |
| 62 | fi && |
| 63 | meson test -C .pre-commit-builds/gcc-release \ |
| 64 | --suite unit_test \ |
| 65 | --suite integration_short \ |
| 66 | --suite integration_long \ |
| 67 | --verbose |
| 68 | ' |
| 69 | language: system |
| 70 | pass_filenames: false |
| 71 | files: \.(c|h|py|sh)$ |
| 72 | stages: [manual] |
| 73 | - id: all-tests-gcc-debug |
| 74 | name: All Tests (GCC Debug) |
| 75 | entry: | |
| 76 | bash -c ' |
| 77 | if [ ! -d .pre-commit-builds/gcc-debug ]; then |
| 78 | CC=gcc meson setup .pre-commit-builds/gcc-debug --buildtype=debug |
| 79 | fi && |
| 80 | meson test -C .pre-commit-builds/gcc-debug \ |
| 81 | --suite unit_test \ |
| 82 | --suite integration_short \ |
| 83 | --suite integration_long \ |
| 84 | --verbose |
| 85 | ' |
| 86 | language: system |
| 87 | pass_filenames: false |
| 88 | files: \.(c|h|py|sh)$ |
| 89 | stages: [manual] |
| 90 | - id: all-tests-clang |
| 91 | name: All Tests (Clang) |
| 92 | entry: | |
| 93 | bash -c ' |
| 94 | if [ ! -d .pre-commit-builds/clang-release ]; then |
| 95 | CC=clang meson setup .pre-commit-builds/clang-release |
| 96 | fi && |
| 97 | meson test -C .pre-commit-builds/clang-release \ |
| 98 | --suite unit_test \ |
| 99 | --suite integration_short \ |
| 100 | --suite integration_long \ |
| 101 | --verbose |
| 102 | ' |
| 103 | language: system |
| 104 | pass_filenames: false |
| 105 | files: \.(c|h|py|sh)$ |
| 106 | stages: [manual] |
| 107 | - id: all-tests-clang-debug |
| 108 | name: All Tests (Clang Debug) |
| 109 | entry: | |
| 110 | bash -c ' |
| 111 | if [ ! -d .pre-commit-builds/clang-debug ]; then |
| 112 | CC=clang meson setup .pre-commit-builds/clang-debug --buildtype=debug |
| 113 | fi && |
| 114 | meson test -C .pre-commit-builds/clang-debug \ |
| 115 | --suite unit_test \ |
| 116 | --suite integration_short \ |
| 117 | --suite integration_long \ |
| 118 | --verbose |
| 119 | ' |
| 120 | language: system |
| 121 | pass_filenames: false |
| 122 | files: \.(c|h|py|sh)$ |
| 123 | stages: [manual] |
| 124 | - repo: https://github.com/pocc/pre-commit-hooks |
| 125 | rev: v1.3.5 |
| 126 | hooks: |
| 127 | - id: clang-tidy |
| 128 | args: ["-p=builddir", "--warnings-as-errors=*"] |