Skip to content

Commit 7bf6752

Browse files
committed
add circleci
1 parent 0bdb1ce commit 7bf6752

File tree

3 files changed

+70
-44
lines changed

3 files changed

+70
-44
lines changed

.circleci/config.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
version: 2.1
2+
jobs:
3+
build-go1_11_6:
4+
docker:
5+
- image: circleci/golang:1.11.6
6+
environment:
7+
GO111MODULE: "on"
8+
working_directory: /go/src/github.com/friendsofgo/errors
9+
steps:
10+
- checkout
11+
- run: go test -v -race ./...
12+
- run: go build -race cmd/killgrave/main.go
13+
build-go1_12_9:
14+
docker:
15+
- image: circleci/golang:1.12.9
16+
environment:
17+
GO111MODULE: "on"
18+
working_directory: /go/src/github.com/friendsofgo/errors
19+
steps:
20+
- checkout
21+
- run: go test -v -race ./...
22+
build-go1_13:
23+
docker:
24+
- image: circleci/golang:1.13
25+
working_directory: /go/src/github.com/friendsofgo/errors
26+
steps:
27+
- checkout
28+
- run: go test -v -race ./...
29+
build-go_latest:
30+
docker:
31+
- image: circleci/golang:latest
32+
environment:
33+
GO111MODULE: "on"
34+
working_directory: /go/src/github.com/friendsofgo/errors
35+
steps:
36+
- checkout
37+
- run: go test -v -race ./...
38+
coverage:
39+
docker:
40+
- image: circleci/golang:latest
41+
environment:
42+
GO111MODULE: "on"
43+
working_directory: /go/src/github.com/friendsofgo/errors
44+
steps:
45+
- checkout
46+
- run: make coverage
47+
- run: bash <(curl -s https://codecov.io/bash)
48+
release:
49+
docker:
50+
- image: circleci/golang:latest
51+
steps:
52+
- checkout
53+
- run: curl -sL https://git.io/goreleaser | bash
54+
workflows:
55+
version: 2
56+
build_and_test:
57+
jobs:
58+
- build-go1_11_6
59+
- build-go1_12_9
60+
- build-go1_13
61+
- build-go_latest
62+
- coverage
63+
- release:
64+
filters:
65+
branches:
66+
ignore: /.*/
67+
tags:
68+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/

Makefile

Lines changed: 0 additions & 44 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![FriendsOfGo](https://img.shields.io/badge/powered%20by-Friends%20of%20Go-73D7E2.svg)](https://friendsofgo.tech)
2+
[![CircleCI](https://circleci.com/gh/friendsofgo/errors.svg?style=svg)](https://circleci.com/gh/friendsofgo/errors)
23
[![Build status](https://ci.appveyor.com/api/projects/status/phjkr6de4mnb19kq?svg=true)](https://ci.appveyor.com/project/aperezg/errors)
4+
[![Version](https://img.shields.io/github/release/friendsofgo/errors.svg?style=flat-square)](https://github.com/friendsofgo/errors/releases/latest)
35
[![Go Report Card](https://goreportcard.com/badge/github.com/friendsofgo/errors)](https://goreportcard.com/report/github.com/friendsofgo/errors)
46
[![GoDoc](https://godoc.org/github.com/friendsofgo/errors?status.svg)](https://godoc.org/github.com/friendsofgo/errors)
57

0 commit comments

Comments
 (0)