This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d3a073
commit 17ec444
Showing
6 changed files
with
97 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.git | ||
tests | ||
hooks | ||
scripts | ||
.* | ||
Dockerfile |
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,13 @@ | ||
#!/bin/bash | ||
set -o errexit -o nounset -o pipefail | ||
|
||
echo "RUNNING PRE-COMMIT"; | ||
|
||
GIT_HOOKS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; | ||
REPO_DIR=$GIT_HOOKS_DIR/../.. | ||
SCRIPTS_DIR=$REPO_DIR/scripts | ||
|
||
$SCRIPTS_DIR/build-docs.sh | ||
|
||
# Fail if there are unstaged changes | ||
git diff --exit-code |
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,10 @@ | ||
#!/bin/bash | ||
set -o errexit -o nounset -o pipefail | ||
|
||
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; | ||
REPO_DIR="$SCRIPTS_DIR/.."; | ||
META_DIR="$REPO_DIR/repo/meta" | ||
|
||
echo "Building docs..."; | ||
$REPO_DIR/"marathon_lb.py" --longhelp > $REPO_DIR/Longhelp.md; | ||
echo "OK"; |
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,17 @@ | ||
#!/bin/bash | ||
set -o errexit -o nounset -o pipefail | ||
|
||
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; | ||
REPO_DIR=$SCRIPTS_DIR/.. | ||
HOOKS_DIR=$REPO_DIR/hooks | ||
GIT_HOOKS_DIR=$REPO_DIR/.git/hooks | ||
|
||
echo "Installing git hooks..."; | ||
|
||
for file in $(ls $HOOKS_DIR); do | ||
echo "Copying $file"; | ||
cp "$HOOKS_DIR/$file" $GIT_HOOKS_DIR/; | ||
chmod +x "$GIT_HOOKS_DIR/$file"; | ||
done | ||
|
||
echo "OK"; |