mirror of
https://github.com/walles/moar.git
synced 2024-11-21 16:04:20 +03:00
Don't use -race on i386
This was failing in CI.
This commit is contained in:
parent
6ef529a968
commit
5daf649ca3
7
test.sh
7
test.sh
@ -19,7 +19,12 @@ golangci-lint run --tests=true
|
||||
|
||||
# Unit tests
|
||||
echo "Running unit tests..."
|
||||
go test -race -timeout 20s ./...
|
||||
RACE=-race
|
||||
if [ "$GOARCH" == "386" ]; then
|
||||
# -race is not supported on i386
|
||||
RACE=""
|
||||
fi
|
||||
go test $RACE -timeout 20s ./...
|
||||
|
||||
# Ensure we can cross compile
|
||||
# NOTE: Make sure this list matches the one in release.sh
|
||||
|
Loading…
Reference in New Issue
Block a user