Make sure to error on test
This works around set -e not working in this scenario.
This commit is contained in:
3
test.sh
3
test.sh
@@ -16,8 +16,7 @@ diff <(tail -n +$start AUTHORS | sort) <(tail -n +$start AUTHORS)
|
|||||||
./test/test-bashfmt.sh
|
./test/test-bashfmt.sh
|
||||||
./test/test-headerfmt.sh
|
./test/test-headerfmt.sh
|
||||||
go test
|
go test
|
||||||
echo running go vet # since it doesn't output an ok message on pass
|
./test/test-govet.sh
|
||||||
go vet && echo PASS
|
|
||||||
|
|
||||||
# do these longer tests only when running on ci
|
# do these longer tests only when running on ci
|
||||||
if env | grep -q -e '^TRAVIS=true$' -e '^JENKINS_URL=' -e '^BUILD_TAG=jenkins'; then
|
if env | grep -q -e '^TRAVIS=true$' -e '^JENKINS_URL=' -e '^BUILD_TAG=jenkins'; then
|
||||||
|
|||||||
7
test/test-govet.sh
Executable file
7
test/test-govet.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# check that go vet passes
|
||||||
|
echo running test-govet.sh
|
||||||
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!
|
||||||
|
cd "${ROOT}"
|
||||||
|
|
||||||
|
go vet && echo PASS || exit 1 # since it doesn't output an ok message on pass
|
||||||
Reference in New Issue
Block a user