forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1015 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: go
go:
- 1.8
env:
- "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- go get ./...
script:
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- export CLOUDSDK_CORE_PROJECT=weaviate-dev-001
- export DATASTORE_DATASET=weaviate-dev-001
- export DATASTORE_EMULATOR_HOST=127.0.0.1:8081
- export DATASTORE_EMULATOR_HOST_PATH=127.0.0.1:8081/datastore
- export DATASTORE_HOST=http://127.0.0.1:8081
- export DATASTORE_PROJECT_ID=weaviate-dev-001
- export DATASTORE_EMULATOR_HOST=localhost:8081
- nohup gcloud beta emulators datastore start --no-store-on-disk &
- sleep 60
- rm nohup.out
- nohup go run ./cmd/weaviate-server/main.go --scheme=http --port=8080 --host=127.0.0.1 &
- sleep 12
- export WEAVIATEKEY=$(grep "ROOTKEY=" nohup.out | cut -d "=" -f 2)
- go test -v ./test -args -api-key=$WEAVIATEKEY