forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
103 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ builds: | |
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
main: ./cmd/weaviate-server | ||
goarch: | ||
- amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -eou pipefail | ||
|
||
function main() { | ||
# needed for test/docker package during replication tests | ||
export TEST_WEAVIATE_IMAGE=weaviate/test-server | ||
# for now we need to run the tests sequentially, there seems to be some sort of issues with running them in parallel | ||
for pkg in $(go list ./... | grep 'test/acceptance' | grep -v 'test/acceptance/stress_tests' ); do | ||
if ! go test -count 1 -race "$pkg"; then | ||
echo "Test for $pkg failed" >&2 | ||
return 1 | ||
fi | ||
done | ||
for pkg in $(go list ./... | grep 'test/acceptance/stress_tests' ); do | ||
if ! go test -count 1 "$pkg"; then | ||
echo "Test for $pkg failed" >&2 | ||
return 1 | ||
fi | ||
done | ||
# tests with go client are in a separate package with its own dependencies to isolate them | ||
cd 'test/acceptance_with_go_client' | ||
for pkg in $(go list ./... ); do | ||
if ! go test -count 1 -race "$pkg"; then | ||
echo "Test for $pkg failed" >&2 | ||
return 1 | ||
fi | ||
done | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters