Skip to content

Commit 25a6e8a

Browse files
committed
Adds check for go test run in release script
1 parent 83f6785 commit 25a6e8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/release

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
set -e
32
PROJDIR=$(cd `dirname $0`/.. && pwd)
43

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

2322
# Run the tests
2423
go test
24+
if [ $? -ne 0 ]; then
25+
echo "Tests failed. Aborting."
26+
exit 3
27+
fi
2528

2629
# Check if tag exists
2730
git fetch --tags

0 commit comments

Comments
 (0)