Update token request
@@ -28,6 +28,8 @@ before_script:
script:
# Running Weaviate deamon
- sudo docker-compose up -d
+ # Sleep to make sure all is up and running
+ - sleep 20
# Find the correct ip, key and token
- WEAVAITEIP=$(sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' weaviate_weaviate_1)
- ROOTTOKEN=$(sudo docker-compose logs weaviate|grep -s ROOTTOKEN|sed 's/.*ROOTTOKEN=//')
@@ -36,8 +38,6 @@ script:
- |
# On error, quit
set -e
- # Sleep to make sure is all up and running
- sleep 15
# Test!
go test -v ./test -args -api-key=${ROOTKEY} -api-token=${ROOTTOKEN} -server-host=${WEAVAITEIP} -server-port=80 -server-scheme=http
# Install goreleaser and create build dirs
