From af637abf120304bdbf40479fac51bd4788a9a0dd Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 25 Apr 2017 17:48:10 -0400 Subject: [PATCH] Makefile and circle.yml --- Makefile | 20 ++++++++++++++++++++ circle.yml | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Makefile create mode 100644 circle.yml diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..49acb091a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.PHONEY: all test install get_vendor_deps ensure_tools + +GOTOOLS = \ + github.com/Masterminds/glide +REPO:=github.com/tendermint/tmlibs + +all: install test + +test: + go test `glide novendor` + +get_vendor_deps: ensure_tools + @rm -rf vendor/ + @echo "--> Running glide install" + @glide install + +ensure_tools: + go get $(GOTOOLS) + + diff --git a/circle.yml b/circle.yml new file mode 100644 index 000000000..23ac4bd9f --- /dev/null +++ b/circle.yml @@ -0,0 +1,21 @@ +machine: + environment: + GOPATH: /home/ubuntu/.go_workspace + PROJECT_PARENT_PATH: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME" + PROJECT_PATH: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME + GO15VENDOREXPERIMENT: 1 + hosts: + circlehost: 127.0.0.1 + localhost: 127.0.0.1 + +dependencies: + override: + - mkdir -p "$PROJECT_PARENT_PATH" + - ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH" + post: + - go version + +test: + override: + - "go version" + - "cd $PROJECT_PATH && make get_vendor_deps && make test"