From deb9093050b41159260a02e46ba339f6a6b30e7c Mon Sep 17 00:00:00 2001 From: "Eric J. Holmes" Date: Thu, 6 Apr 2017 15:38:11 -0700 Subject: [PATCH] Add circle.yml --- Makefile | 3 +++ circle.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 circle.yml diff --git a/Makefile b/Makefile index a9092c8..ecc757e 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ bin/assume-role: *.go go build -o bin/assume-role . + +test: + go test -race $(shell go list ./... | grep -v /vendor/) diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..b4e8de5 --- /dev/null +++ b/circle.yml @@ -0,0 +1,14 @@ +machine: + environment: + GODIST: "go1.7.linux-amd64.tar.gz" + post: + - 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 + - sudo ln -s /usr/local/go/bin/go /usr/bin/go + - sudo go install -a -race std + +test: + override: + - make test