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 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. 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