version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.10
    working_directory: /go/src/github.com/barnybug/cli53
    steps:
      - checkout
      - run: make deps test-coverage
  release:
    docker:
      - image: circleci/golang:1.10
    working_directory: /go/src/github.com/barnybug/cli53
    steps:
      - checkout
      - run:
          command: |
            mkdir -p $GOPATH/bin && wget -q https://github.com/barnybug/cli53/releases/download/0.6.0/upx -O $GOPATH/bin/upx && chmod +x $GOPATH/bin/upx
      - run: curl -sL https://git.io/goreleaser | VERSION=v0.34.2 bash

workflows:
  version: 2
  build-release:
    jobs:
      - build:
          filters:
            tags:
              only: /^\d+\.\d+\.\d+$/
      - release:
          requires: [build]
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^\d+\.\d+\.\d+$/

version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.11
    working_directory: /go/src/github.com/barnybug/cli53
    steps:
      - checkout
      - run: make deps test-coverage
  release:
    docker:
      - image: circleci/golang:1.11
    working_directory: /go/src/github.com/barnybug/cli53
    steps:
      - checkout
      - run:
          command: |
            mkdir -p $GOPATH/bin && wget -q https://github.com/barnybug/cli53/releases/download/0.6.0/upx -O $GOPATH/bin/upx && chmod +x $GOPATH/bin/upx
      - run: curl -sL https://git.io/goreleaser | VERSION=v0.34.2 bash

workflows:
  version: 2
  build-release:
    jobs:
      - build:
          filters:
            tags:
              only: /^\d+\.\d+\.\d+$/
      - release:
          requires: [build]
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^\d+\.\d+\.\d+$/

Update build golang to 1.11
Update build golang to 1.11
