From 3afa0009fab20b80914e9ad2dbb2c174e2c4a7e7 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Tue, 28 May 2019 20:18:25 +0200 Subject: [PATCH 1/3] Fixed go mod Signed-off-by: Glenn Vriesman --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 7e621b63..5791b4e4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/glvr182/gocui +module github.com/awesome-gocui/gocui go 1.12 From 8134275081d13a77c8663421d7704f8a09ccc6a5 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Tue, 28 May 2019 20:18:42 +0200 Subject: [PATCH 2/3] Added circle-ci config Signed-off-by: Glenn Vriesman --- .circleci/config.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..89d5f0ad --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +version: 2 +jobs: + build: + working_directory: /go/src/github.com/glvr182/git-profile + + docker: + - image: circleci/golang:1.12 + + steps: + - checkout + - run: + name: go mod + command: go mod tidy + - run: + name: go fmt + command: | + if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then + find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \; + exit 1; + fi + - run: + name: go build + command: | + cd _examples/ + for file in *.go + do + go build $file + done + +workflows: + version: 2 + build: + jobs: + - build \ No newline at end of file From dc479abcf4b19bce49a8a9eb34d4cdf2b371b440 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Tue, 28 May 2019 20:19:29 +0200 Subject: [PATCH 3/3] Added badges to readme * Circle-ci * Codecov * Go Report * GolangCI * Github tag Signed-off-by: Glenn Vriesman --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb8606fc..b1f54b88 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # GOCUI - Go Console User Interface - +[![CircleCI](https://circleci.com/gh/awesome-gocui/gocui/tree/master.svg?style=svg)](https://circleci.com/gh/awesome-gocui/gocui/tree/master) +[![CodeCov](https://codecov.io/gh/awesome-gocui/gocui/branch/master/graph/badge.svg)](https://codecov.io/gh/awesome-gocui/gocui) +[![Go Report Card](https://goreportcard.com/badge/github.com/awesome-gocui/gocui)](https://goreportcard.com/report/github.com/awesome-gocui/gocui) +[![GolangCI](https://golangci.com/badges/github.com/awesome-gocui/gocui.svg)](https://golangci.com/badges/github.com/awesome-gocui/gocui.svg) [![GoDoc](https://godoc.org/github.com/awesome-gocui/gocui?status.svg)](https://godoc.org/github.com/awesome-gocui/gocui) +![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/awesome-gocui/gocui.svg) Minimalist Go package aimed at creating Console User Interfaces.