test: correct Travis tests suite to indicate failure by returning proper exit code
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
4ab1c695a0
commit
65fd971c85
|
@ -8,6 +8,10 @@ go test -i ./...
|
||||||
for package in "${PACKAGES[@]}"
|
for package in "${PACKAGES[@]}"
|
||||||
do
|
do
|
||||||
go test -coverprofile=tmp.cov gobot.io/x/$package
|
go test -coverprofile=tmp.cov gobot.io/x/$package
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
EXITCODE=1
|
||||||
|
fi
|
||||||
if [ -f tmp.cov ]; then
|
if [ -f tmp.cov ]; then
|
||||||
cat tmp.cov >> coverage.txt
|
cat tmp.cov >> coverage.txt
|
||||||
rm tmp.cov
|
rm tmp.cov
|
||||||
|
|
Loading…
Reference in New Issue