Skip to content

Commit

Permalink
Adds check for go test run in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jul 2, 2016
1 parent 83f6785 commit 25a6e8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/release
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -e
PROJDIR=$(cd `dirname $0`/.. && pwd)

VERSION="${1}"
Expand All @@ -22,6 +21,10 @@ cd ${PROJDIR}

# Run the tests
go test
if [ $? -ne 0 ]; then
echo "Tests failed. Aborting."
exit 3
fi

# Check if tag exists
git fetch --tags
Expand Down

0 comments on commit 25a6e8a

Please sign in to comment.