From fc24875d2164253488b3cbe84aae456b26e72dc9 Mon Sep 17 00:00:00 2001 From: Songmu Date: Sun, 3 Jul 2016 14:49:45 +0900 Subject: [PATCH] add meta files --- .gitignore | 5 +++++ .travis.yml | 8 ++++++++ LICENSE | 22 ++++++++++++++++++++++ Makefile | 22 ++++++++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ _tools/releng | 16 ++++++++++++++++ 6 files changed, 100 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md create mode 100755 _tools/releng diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ee0658 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.* +!.gitignore +!.travis.yml +!.goxc.json +dist/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3629ac4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go +go: +- tip +script: +- make lint +- make test +after_script: +- make cover diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..14a2bcc --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2015 Songmu + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6e462fe --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +test: deps + go test + +deps: + go get -d -v -t ./... + go get github.com/golang/lint/golint + go get github.com/mattn/goveralls + +LINT_RET = .golint.txt +lint: deps + go vet ./... + rm -f $(LINT_RET) + golint ./... | tee $(LINT_RET) + test ! -s $(LINT_RET) + +cover: deps + goveralls + +release: + _tools/releng + +.PHONY: test deps lint cover release diff --git a/README.md b/README.md new file mode 100644 index 0000000..b4304c2 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +ghg +======= + +[![Build Status](https://travis-ci.org/Songmu/ghg.png?branch=master)][travis] +[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license] +[![GoDoc](https://godoc.org/github.com/Songmu/ghg?status.svg)](godoc) + +[travis]: https://travis-ci.org/Songmu/ghg +[coveralls]: https://coveralls.io/r/Songmu/ghg?branch=master +[license]: https://github.com/Songmu/ghg/blob/master/LICENSE +[godoc]: https://godoc.org/github.com/Songmu/ghg + +## Description + +Get the executable from github releases + +## Installation + + % go get github.com/Songmu/ghg/cmd/ghg + +## Synopsis + + % ghg get Songmu/ghg + +## Author + +[Songmu](https://github.com/Songmu) diff --git a/_tools/releng b/_tools/releng new file mode 100755 index 0000000..0da4692 --- /dev/null +++ b/_tools/releng @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +gobump show + +read -p "input next version: " next_version + +gobump set $next_version -w +ghch -w -N v$next_version + +git ci -am "Checking in changes prior to tagging of version v$next_version" +git tag v$next_version +git push && git push --tags + +goxc -pv v$next_version +ghr v$next_version dist/v$next_version