2018-08-16 22:07:02 +10:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-08-18 09:27:47 +02:00
|
|
|
- image: circleci/golang:1.10
|
2018-08-16 22:07:02 +10:00
|
|
|
|
2018-08-18 09:27:47 +02:00
|
|
|
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)
|
2018-08-16 22:07:02 +10:00
|
|
|
|
2018-08-18 09:27:47 +02:00
|
|
|
release:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.10
|
2018-08-16 22:07:02 +10:00
|
|
|
working_directory: /go/src/github.com/jesseduffield/lazygit
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-08-18 09:27:47 +02:00
|
|
|
- run:
|
|
|
|
name: Run gorelease
|
|
|
|
command: |
|
|
|
|
curl -sL https://git.io/goreleaser | bash
|
2018-08-16 22:07:02 +10:00
|
|
|
|
2018-08-18 09:27:47 +02:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- build
|
|
|
|
release:
|
|
|
|
jobs:
|
|
|
|
- release:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /v[0-9]+(\.[0-9]+)*/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|