Store artifacts on CircleCI
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
@@ -15,3 +17,7 @@ test:
- 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:
+ - go install -ldflags="-X main.branch=$CIRCLE_BRANCH -X main.commit=$CIRCLE_SHA1" ./...
+ - cd $GOBIN && tar cvfz $CIRCLE_ARTIFACTS/rqlite.tar.gz *
