From 1dd4594c4baae42ec0e29ff72af3588f9065aa5f Mon Sep 17 00:00:00 2001 From: Martin Gudmundsson Date: Mon, 12 Oct 2020 19:06:12 +0200 Subject: [PATCH 1/5] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..af257f0 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Golang CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-go/ for more details +version: 2 +jobs: + build: + docker: + # specify the version + - image: circleci/golang:1.9 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + #### TEMPLATE_NOTE: go expects specific checkout path representing url + #### expecting it in the form of + #### /go/src/github.com/circleci/go-tool + #### /go/src/bitbucket.org/circleci/go-tool + working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}} + steps: + - checkout + + # specify any bash command here prefixed with `run: ` + - run: go get -v -t -d ./... + - run: go test -v ./... \ No newline at end of file From 282214191e767b5fed48a121a007edfc98eb6c55 Mon Sep 17 00:00:00 2001 From: Martin Gudmundsson Date: Mon, 12 Oct 2020 19:11:43 +0200 Subject: [PATCH 2/5] Update config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index af257f0..f6f8405 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,5 +22,5 @@ jobs: - checkout # specify any bash command here prefixed with `run: ` - - run: go get -v -t -d ./... - - run: go test -v ./... \ No newline at end of file + - run: go build + From cf055fe46a27b8327e5c933ede5db9bf68cb9396 Mon Sep 17 00:00:00 2001 From: Martin Gudmundsson Date: Mon, 12 Oct 2020 19:12:45 +0200 Subject: [PATCH 3/5] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6f8405..6486dd4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,7 @@ jobs: #### expecting it in the form of #### /go/src/github.com/circleci/go-tool #### /go/src/bitbucket.org/circleci/go-tool - working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}} + working_directory: /go/src/github.com/mgudmund/unique steps: - checkout From fc17f6ebf4ba2a2145f4d4d385e668ff82f3d1e4 Mon Sep 17 00:00:00 2001 From: Martin Gudmundsson Date: Mon, 12 Oct 2020 19:14:15 +0200 Subject: [PATCH 4/5] Update config.yml --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6486dd4..be3a31a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,5 +22,6 @@ jobs: - checkout # specify any bash command here prefixed with `run: ` + - run: go get - run: go build From 270694ef269046e2aee0c25f1f7c984b5f681701 Mon Sep 17 00:00:00 2001 From: Martin Gudmundsson Date: Mon, 12 Oct 2020 19:19:35 +0200 Subject: [PATCH 5/5] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index be3a31a..c543122 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ jobs: build: docker: # specify the version - - image: circleci/golang:1.9 + - image: circleci/golang:1.13 # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images