Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.*
!.gitignore
!.travis.yml
dist/
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: go
os:
- linux
- osx
go:
- tip
script:
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

## [v0.1.0](https://github.com/Songmu/timeout/compare/v0.0.1...v0.1.0) (2017-03-26)

* [incompatible] Support Foreground option [#6](https://github.com/Songmu/timeout/pull/6) ([Songmu](https://github.com/Songmu))
* [incompatible] killall child processes when sending SIGKILL on Unix systems [#5](https://github.com/Songmu/timeout/pull/5) ([Songmu](https://github.com/Songmu))
* Call taskkill [#3](https://github.com/Songmu/timeout/pull/3) ([mattn](https://github.com/mattn))
* update ci related files [#4](https://github.com/Songmu/timeout/pull/4) ([Songmu](https://github.com/Songmu))

## [v0.0.1](https://github.com/Songmu/timeout/compare/fca682e36f92...v0.0.1) (2015-04-23)

* Fix document [#2](https://github.com/Songmu/timeout/pull/2) ([syohex](https://github.com/syohex))
* Support windows [#1](https://github.com/Songmu/timeout/pull/1) ([mattn](https://github.com/mattn))
48 changes: 37 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
test: deps
go test ./...
CURRENT_REVISION = $(shell git rev-parse --short HEAD)
BUILD_LDFLAGS = "-X github.com/Songmu/timeout.revision=$(CURRENT_REVISION)"
ifdef update
u=-u
endif

deps:
go get -d -v -t ./...
go get github.com/golang/lint/golint
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go get ${u} -d -v ./...

test-deps:
go get ${u} -d -v -t ./...

devel-deps: test-deps
go get ${u} github.com/golang/lint/golint
go get ${u} github.com/mattn/goveralls
go get ${u} github.com/motemen/gobump/cmd/gobump
go get ${u} github.com/Songmu/goxz/cmd/goxz
go get ${u} github.com/Songmu/ghch/cmd/ghch
go get ${u} github.com/tcnksm/ghr

test: deps
go test

lint: deps
go vet ./...
golint -set_exit_status ./...
lint: devel-deps
go vet
golint -set_exit_status

cover: deps
cover: devel-deps
goveralls

.PHONY: test deps lint cover
build: deps
go build -ldflags=$(BUILD_LDFLAGS) ./cmd/goxz

crossbuild: devel-deps
$(eval ver = $(shell gobump show -r))
goxz -pv=v$(ver) -build-ldflags=$(BUILD_LDFLAGS) \
-d=./dist/v$(ver) ./cmd/go-timeout

release:
_tools/releng
_tools/upload_artifacts

.PHONY: test deps test-deps devel-deps lint cover crossbuild release
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ Timeout invocation. Go porting of GNU timeout

Run a given command with a time limit.

## Disclaimer

This software is still alpha quality. We may change APIs without notice.

## Synopsis

tio := &timeout.Timeout{
Expand Down
13 changes: 13 additions & 0 deletions _tools/releng
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
set -e

echo current version: $(gobump show -r)
read -p "input next version: " next_version

gobump set $next_version -w
ghch -w -N v$next_version

git add version.go CHANGELOG.md
git ci -m "Checking in changes prior to tagging of version v$next_version"
git tag v$next_version
git push && git push --tags
6 changes: 6 additions & 0 deletions _tools/upload_artifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -e

ver=v$(gobump show -r)
make crossbuild
ghr $ver dist/$ver
28 changes: 0 additions & 28 deletions tool/cover.sh

This file was deleted.

5 changes: 5 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package timeout

const version = "0.1.0"

var revision = "Devel"