Skip to content

Commit

Permalink
Add circle config
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Jun 4, 2019
1 parent 0294e20 commit 47eac4a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2

jobs:
build:
docker:
-
image: circleci/golang:1.12
environment:
GOFLAGS: -mod=readonly
GO111MODULE: "off"

steps:
- checkout

-
run:
name: Run tests
command: go test .

release:
docker:
-
image: circleci/golang:1.12
environment:
GOFLAGS: -mod=readonly
GO111MODULE: "off"

steps:
- checkout

-
run:
name: Release
command: make release

workflows:
version: 2
ci:
jobs:
-
build:
filters:
tags:
only: /^v?\d+\.\d+\.\d+(-\S*)?$/
-
release:
requires:
- build
filters:
tags:
only: /^v?\d+\.\d+\.\d+(-\S*)?$/
branches:
ignore: /.*/

0 comments on commit 47eac4a

Please sign in to comment.