Skip to content

Commit

Permalink
add meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jul 3, 2016
1 parent f252dd7 commit fc24875
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.*
!.gitignore
!.travis.yml
!.goxc.json
dist/
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: go
go:
- tip
script:
- make lint
- make test
after_script:
- make cover
22 changes: 22 additions & 0 deletions 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.
22 changes: 22 additions & 0 deletions 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
27 changes: 27 additions & 0 deletions 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)
16 changes: 16 additions & 0 deletions _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

0 comments on commit fc24875

Please sign in to comment.