From 33422e39795f72351121103d62504bdffec2ea64 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 30 May 2019 10:28:29 +0200 Subject: [PATCH 1/3] doc: fix a link to the new trivis-ci.com Otherwise, badge image in README is broken. Signed-off-by: Alexander Bezzubov --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d29a1dc..59a35a5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# go-errors [![GoDoc](https://godoc.org/gopkg.in/src-d/go-errors.v1?status.svg)](https://godoc.org/gopkg.in/src-d/go-errors.v1) [![Build Status](https://travis-ci.org/src-d/go-errors.svg?branch=master)](https://travis-ci.org/src-d/go-errors) [![codecov](https://codecov.io/gh/src-d/go-errors/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-errors) [![codebeat badge](https://codebeat.co/badges/e0c5d481-6200-4112-9144-f750317421f0)](https://codebeat.co/projects/github-com-src-d-go-errors) +# go-errors [![GoDoc](https://godoc.org/gopkg.in/src-d/go-errors.v1?status.svg)](https://godoc.org/gopkg.in/src-d/go-errors.v1) [![Build Status](https://travis-ci.com/src-d/go-errors.svg?branch=master)](https://travis-ci.com/src-d/go-errors) [![codecov](https://codecov.io/gh/src-d/go-errors/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-errors) [![codebeat badge](https://codebeat.co/badges/e0c5d481-6200-4112-9144-f750317421f0)](https://codebeat.co/projects/github-com-src-d-go-errors) Yet another `errors` package, implementing error handling primitives with error wrapping and error tracing. From 136c1f3d7d2c8404d60db99d3f46063cbad52b9c Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 30 May 2019 10:30:27 +0200 Subject: [PATCH 2/3] build: add go module declaration Signed-off-by: Alexander Bezzubov --- go.mod | 8 ++++++++ go.sum | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..664768e --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module gopkg.in/src-d/go-errors.v1 + +go 1.11 + +require ( + github.com/pkg/errors v0.8.1 + github.com/stretchr/testify v1.3.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..9229611 --- /dev/null +++ b/go.sum @@ -0,0 +1,9 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= From 4ccf2ac8597fd0a7de00d0cfd206e3db7baa97a1 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 30 May 2019 11:09:49 +0200 Subject: [PATCH 3/3] ci: test on 2 latest version + a profile for modules Following https://github.com/src-d/guide/blob/master/engineering/conventions/go.md#supported-go-versions Signed-off-by: Alexander Bezzubov --- .travis.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f7ec8d6..cb2739e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,11 @@ language: go -go: - - 1.8 - go_import_path: gopkg.in/src-d/go-errors.v1 +go: + - 1.11 + - 1.12 + install: - go get -v -t ./... @@ -13,3 +14,10 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) + +jobs: + include: + - name: 'Go Modules' + install: + script: + - GO111MODULE=on make test