mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 19:16:20 +00:00
Tip about pre-push hook in contribution guidelines
This commit is contained in:
@@ -19,6 +19,22 @@ do
|
|||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you feel embarrassed every time the CI fails you can add the following
|
||||||
|
snippet to `.git/hooks/pre-push`:
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
./ci-build.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
This will run the same tests that the CI runs and refuse the push if it fails.
|
||||||
|
Note that it will run on the actual content of the repository directory and not
|
||||||
|
what may have been staged/committed.
|
||||||
|
|
||||||
|
If you're in a hurry you can add the `--no-verify` flag when issuing `git push`
|
||||||
|
and the `pre-push` hook will be skipped.
|
||||||
|
|
||||||
## Pull Requests
|
## Pull Requests
|
||||||
Before submitting a Pull Request please run valgrind and the clang static code analyzer.
|
Before submitting a Pull Request please run valgrind and the clang static code analyzer.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user