From fbfa48f0fcd2b537c98daa79352a0e224a480937 Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Sat, 18 Aug 2018 09:27:47 +0200 Subject: update circleci * define release worflow when a tag is created * add dep install * run tests with coverage * add goreleaser --- .circleci/config.yml | 49 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 16 deletions(-) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index c5f520b70..939adc60e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,26 +1,43 @@ -# 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 + - image: circleci/golang:1.10 - # 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 + working_directory: /go/src/github.com/jesseduffield/lazygit + steps: + - checkout + - run: + name: Run tests + command: | + ./test.sh + - run: + name: Push on codecov result + command: | + bash <(curl -s https://codecov.io/bash) - #### 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 + release: + docker: + - image: circleci/golang:1.10 working_directory: /go/src/github.com/jesseduffield/lazygit steps: - checkout + - run: + name: Run gorelease + command: | + curl -sL https://git.io/goreleaser | bash - # specify any bash command here prefixed with `run: ` - - run: go test -v ./... - - run: bash <(curl -s https://codecov.io/bash) +workflows: + version: 2 + build: + jobs: + - build + release: + jobs: + - release: + context: org-global + filters: + tags: + only: /v[0-9]+(\.[0-9]+)*/ + branches: + ignore: /.*/ -- cgit v1.2.3 From d35eaa062b79f7954a3c34ba8dbda0db142693c5 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 21 Aug 2018 12:57:19 +1000 Subject: remove org-global context in circle ci config --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index 939adc60e..0eef1a409 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,6 @@ workflows: release: jobs: - release: - context: org-global filters: tags: only: /v[0-9]+(\.[0-9]+)*/ -- cgit v1.2.3