Set port and url Weaviate
@@ -30,11 +30,11 @@ script:
- docker run -it --name weaviate_db_1_travis -e CASSANDRA_BROADCAST_ADDRESS=127.0.0.1 -p 7000:7000 -p 9042:9042 -v ~/cassandra:/var/lib/cassandra -d cassandra:3
- sleep 26
# Running Weaviate as deamon
- - nohup go run ./cmd/weaviate-server/main.go --scheme=http --port=80 --host=localhost --config="cassandra" --config-file="./weaviate.conf.json" &
+ - nohup go run ./cmd/weaviate-server/main.go --scheme=http --port=8080 --host=localhost --config="cassandra" --config-file="./weaviate.conf.json" &
# Sleep to make sure all is up and running
- sleep 26
# Find the correct ip, key and token
- - WEAVAITEIP=$(sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' weaviate_db_1_travis)
+ - CASSANDRAIP=$(sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' weaviate_db_1_travis)
- ROOTTOKEN=$(cat nohup.out | grep -s ROOTTOKEN|sed 's/.*ROOTTOKEN=//')
- ROOTKEY=$(cat nohup.out | grep -s ROOTKEY|sed 's/.*ROOTKEY=//')
# Run the tests
@@ -42,7 +42,7 @@ script:
# On error, quit
set -e
# Test!
- go test -v ./test -args -api-key=${ROOTKEY} -api-token=${ROOTTOKEN} -server-host=${WEAVAITEIP} -server-port=80 -server-scheme=http
+ go test -v ./test -args -api-key=${ROOTKEY} -api-token=${ROOTTOKEN} -server-host=localhost -server-port=8080 -server-scheme=http
# Install goreleaser and create build dirs
- |
if [ $TRAVIS_PULL_REQUEST = "false" ]; then
