summaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-25 11:02:46 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-25 11:02:46 +1000
commitf24c95aedec785985dfcd98ff3997152c193bd3e (patch)
tree9f8ac1a61cf686052f623b767e13d6d1a14e3683 /.circleci/config.yml
parent5628eae502ee3b4d3d72a8e4045713b637f7a764 (diff)
parent93ab892bdd1226f9a519a938c8b28590e71e54f3 (diff)
Merge branch 'master' into feature/auto-updates
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml48
1 files changed, 32 insertions, 16 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index c5f520b70..0eef1a409 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,26 +1,42 @@
-# 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:
+ filters:
+ tags:
+ only: /v[0-9]+(\.[0-9]+)*/
+ branches:
+ ignore: /.*/