-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1649 from oxen-io/dev
v0.9.2
- Loading branch information
Showing
6 changed files
with
71 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# | ||
# pre-push hook for git | ||
# this script is probably overkill for most contributors | ||
# | ||
# "i use this to prevent foot cannons caused by commiting broken code" | ||
# | ||
# ~ jeff (lokinet author and crazy person) | ||
# | ||
# | ||
# to use this as a git hook do this in the root of the repo: | ||
# | ||
# cp contrib/git-hook-pre-push.sh .git/hooks/pre-push | ||
# | ||
|
||
|
||
set -e | ||
|
||
cd "$(dirname $0)/../.." | ||
echo "check format..." | ||
./contrib/format.sh verify | ||
echo "format is gucci af fam" | ||
|
||
echo "remove old test build directory..." | ||
rm -rf build-git-hook | ||
mkdir build-git-hook | ||
echo "configuring test build jizz..." | ||
cmake -S . -B build-git-hook -DWITH_LTO=OFF -DWITH_HIVE=ON -G Ninja | ||
echo "ensure this shit compiles..." | ||
ninja -C build-git-hook all | ||
echo "ensure unit tests aren't fucked..." | ||
ninja -C build-git-hook check | ||
|
||
echo "we gud UmU" | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters