Skip to content

Commit

Permalink
Merge branch 'feature/automation'
Browse files Browse the repository at this point in the history
* feature/automation:
  Added badges to readme
  Added circle-ci config
  Fixed go mod

Signed-off-by: Glenn Vriesman <[email protected]>
  • Loading branch information
glvr182 committed May 28, 2019
2 parents 5e449e9 + dc479ab commit 7a44180
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/glvr182/gocui
module github.com/awesome-gocui/gocui

go 1.12

Expand Down

0 comments on commit 7a44180

Please sign in to comment.