File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,25 @@ jobs:
2929 curl -L https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > ~/lein
3030 chmod +x ~/lein
3131 ~/lein version
32+ - name : Pre-fetch Go modules
33+ run : |
34+ mkdir -p "$GOCACHE" /tmp/go-tmp
35+ GOPATH=$(go env GOPATH)
36+ export GOCACHE GOTMPDIR=/tmp/go-tmp
37+ go mod download
3238 - name : Run Jepsen unit tests
3339 working-directory : jepsen
3440 run : ~/lein test
3541 - name : Launch demo cluster
36- env :
37- GOTMPDIR : /tmp/go-tmp
3842 run : |
3943 set -euo pipefail
40- mkdir -p "$GOCACHE" "$GOTMPDIR"
44+ mkdir -p "$GOCACHE" /tmp/go-tmp
45+ export GOTMPDIR=/tmp/go-tmp
4146 nohup go run cmd/server/demo.go > /tmp/elastickv-demo.log 2>&1 &
4247 echo $! > /tmp/elastickv-demo.pid
4348
4449 echo "Waiting for redis listeners on 63791-63793..."
45- for i in {1..45 }; do
50+ for i in {1..90 }; do
4651 if nc -z 127.0.0.1 63791 && nc -z 127.0.0.1 63792 && nc -z 127.0.0.1 63793; then
4752 echo "Cluster is up"
4853 exit 0
You can’t perform that action at this time.
0 commit comments