summaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: 939adc60ef71eb75c825a4ea29a81aa53adfa98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.10

    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)

  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

workflows:
  version: 2
  build:
    jobs:
      - build
  release:
    jobs:
      - release:
          context: org-global
          filters:
            tags:
              only: /v[0-9]+(\.[0-9]+)*/
            branches:
              ignore: /.*/