From 88569e39ffa9bb55b978cb9ce078d5abcc153b8f Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Mon, 10 Sep 2018 20:43:27 +0930 Subject: [PATCH] circle: add testing configuration Initially just test whether we can build. --- .circlci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .circlci/config.yml diff --git a/.circlci/config.yml b/.circlci/config.yml new file mode 100644 index 00000000..1c1d5c4f --- /dev/null +++ b/.circlci/config.yml @@ -0,0 +1,27 @@ +version: 2 +jobs: + build: + docker: + # CircleCI Go images available at: https://hub.docker.com/r/circleci/golang/ + - image: circleci/golang:1.11 + + working_directory: /go/src/bitbucket.org/ausocean/av + + environment: + TEST_RESULTS: /tmp/test-results + + steps: + - checkout + + - restore_cache: + keys: + - v1-pkg-cache + + - run: go get -u ./... + + - run: go build ./... + + - save_cache: + key: v1-pkg-cache + paths: + - "/go/pkg"