drop github
This commit is contained in:
parent
ddc1db590b
commit
0c001472a6
26
Makefile
26
Makefile
@ -1,14 +1,13 @@
|
|||||||
SOURCES = $(shell find . -name '*.go')
|
|
||||||
|
|
||||||
.PHONY: .coverprofile
|
.PHONY: .coverprofile
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
build: $(SOURCES)
|
build:
|
||||||
go build
|
go build ./...
|
||||||
|
|
||||||
check: build
|
check: test
|
||||||
go test
|
|
||||||
|
test: .coverprofile
|
||||||
|
|
||||||
.coverprofile:
|
.coverprofile:
|
||||||
go test -coverprofile .coverprofile
|
go test -coverprofile .coverprofile
|
||||||
@ -16,24 +15,11 @@ check: build
|
|||||||
cover: .coverprofile
|
cover: .coverprofile
|
||||||
go tool cover -func .coverprofile
|
go tool cover -func .coverprofile
|
||||||
|
|
||||||
publishcoverage: .coverprofile
|
|
||||||
curl -s https://codecov.io/bash -o codecov
|
|
||||||
bash codecov -Zf .coverprofile
|
|
||||||
|
|
||||||
showcover: .coverprofile
|
showcover: .coverprofile
|
||||||
go tool cover -html .coverprofile
|
go tool cover -html .coverprofile
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
gofmt -s -w $(SOURCES)
|
go fmt ./...
|
||||||
|
|
||||||
checkfmt: $(SOURCES)
|
|
||||||
@echo check fmt
|
|
||||||
@if [ "$$(gofmt -s -d $(SOURCES))" != "" ]; then false; else true; fi
|
|
||||||
|
|
||||||
ci-trigger: checkfmt build check
|
|
||||||
ifeq ($(TRAVIS_BRANCH)_$(TRAVIS_PULL_REQUEST), master_false)
|
|
||||||
make publishcoverage
|
|
||||||
endif
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean -i -cache
|
go clean -i -cache
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
[](https://opensource.org/licenses/MIT)
|
|
||||||
[](https://travis-ci.org/aryszka/treerack)
|
|
||||||
[](https://codecov.io/gh/aryszka/treerack)
|
|
||||||
|
|
||||||
# SyncBus
|
# SyncBus
|
||||||
|
|
||||||
Event bus for testing concurrent Go programs.
|
Event bus for testing concurrent Go programs.
|
||||||
@ -10,7 +6,7 @@ SyncBus provides a synchronization hook that can be used by multiple goroutines
|
|||||||
the right order of execution of testing and production code.
|
the right order of execution of testing and production code.
|
||||||
|
|
||||||
Find the documentation here:
|
Find the documentation here:
|
||||||
[https://godoc.org/github.com/aryszka/syncbus](https://godoc.org/github.com/aryszka/syncbus).
|
https://godoc.org/code.squareroundforest.org/arpio/syncbus
|
||||||
|
|
||||||
Find an example here:
|
Find an example here:
|
||||||
[https://godoc.org/github.com/aryszka/syncbus#example-package](https://godoc.org/github.com/aryszka/syncbus#example-package).
|
https://godoc.org/squareroundforest.org/arpio/syncbus#example-package
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/aryszka/syncbus"
|
"code.squareroundforest.org/arpio/syncbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user