-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
7 changed files
with
951 additions
and
2,202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# only allow pushing to this branch if all tests pass | ||
protected_branch='develop' | ||
|
||
current_branch=`git branch --show-current` | ||
|
||
if [[ $current_branch = $protected_branch ]]; then | ||
source ~/.nvm/nvm.sh | ||
nvm use node | ||
npm run test | ||
result=$? | ||
if [ $result -ne 0 ]; then | ||
echo "tests failed!" | ||
exit 1 | ||
fi | ||
fi | ||
exit 0 |
Oops, something went wrong.