1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
876 B
YAML

machine:
environment:
GODIST: "go1.9.1.linux-amd64.tar.gz"
GOBIN: $HOME/binaries_$CIRCLE_SHA1
post:
- mkdir $GOBIN
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
test:
override:
- go version
- bash gofmt.sh
- go tool vet .
- case $CIRCLE_NODE_INDEX in 0) go test -timeout 60s -v ./... ;; 1) GORACE="halt_on_error=1" go test -race -timeout 120s -v ./...;; esac:
parallel: true
post:
- case $CIRCLE_NODE_INDEX in 0) go install -ldflags="-X main.branch=$CIRCLE_BRANCH -X main.commit=$CIRCLE_SHA1" ./... ;; esac:
- case $CIRCLE_NODE_INDEX in 0) cd $GOBIN && tar cvfz $CIRCLE_ARTIFACTS/rqlite.tar.gz * ;; esac: