build: upgrades build pipeline from CircleCI 1.0 -> 2.0 (#11162)

build: upgrades build pipeline from CircleCI 1.0 -> 2.0
This commit is contained in:
Leonard Gram
2018-03-09 11:27:00 +01:00
committed by GitHub
parent 77cd7f34c7
commit 49de4ed28b
5 changed files with 135 additions and 67 deletions
-3
View File
@@ -10,15 +10,12 @@ function exit_if_fail {
fi
}
cd /home/ubuntu/.go_workspace/src/github.com/grafana/grafana
echo "running go fmt"
exit_if_fail test -z "$(gofmt -s -l ./pkg | tee /dev/stderr)"
echo "running go vet"
exit_if_fail test -z "$(go vet ./pkg/... | tee /dev/stderr)"
cd ~/dev/go/src/github.com/grafana/grafana
echo "building backend with install to cache pkgs"
exit_if_fail time go install ./pkg/cmd/grafana-server