Compare commits

...

13 Commits

Author SHA1 Message Date
Arpad Ryszka
177b8f3c6c fix example link 2024-12-17 18:29:43 +01:00
Arpad Ryszka
66f1557c23 drop github 2024-12-17 18:28:27 +01:00
Arpad Ryszka
aa34c64e83 -foo 2024-12-17 17:50:01 +01:00
Arpad Ryszka
624328f930 foo 2024-12-17 17:49:42 +01:00
Arpad Ryszka
da117afe60 -foo 2024-12-17 17:05:45 +01:00
Arpad Ryszka
52851209d5 foo 2024-12-17 17:05:07 +01:00
Arpad Ryszka
55fd76dc6c fix go mod name 2024-12-17 16:47:54 +01:00
Arpad Ryszka
57a6432ef5 rename module 2024-12-12 19:17:41 +01:00
Arpad Ryszka
abb85894a5 use full module path 2024-12-12 17:23:44 +01:00
Arpad Ryszka
18fd18f441 change repo name 2024-12-12 17:03:30 +01:00
Arpad Ryszka
9a549e8565 modularize repo 2024-12-12 16:43:29 +01:00
Arpad Ryszka
c4f38a1277 Merge branch 'master' of https://github.com/aryszka/syncbus 2018-03-18 22:55:35 +01:00
Arpad Ryszka
2c49324f3f
Update README.md 2018-03-18 21:10:02 +01:00
5 changed files with 12 additions and 39 deletions

View File

@ -1,12 +0,0 @@
sudo: false
language: go
go:
- 1.x
branches:
except:
- "/^v\\d+[.]\\d+[.]\\d+.*/"
script:
- make ci-trigger
env:
global:
- secure: i9SWpbE9UXbPQljlqVoRt7mGAr3GTIgcRZ/sNDWxGa8YYtdQMPI8ooCtSGdN0YJHyrqmYw+LbW8WypLkaxtdyeWGmoeMTKgJpYcDV7trCGBoeLIK+8kiKkiggCd+JmOpiMJpHIkSG3QPwRdWzxVr5hjVDxWpnlzX0eoYvYzDGCPaOZ4zbE9lAddDJnsRIt4gP3ZWuf+28ep7ivIKDW1ZTCewjiXt/tQmlX1WJ843TvWWmrJ//UOZM99nsHt1Tmai6+Trwszi7/AjIAPo8hzdAXvJNakx46XmKhJLGmDYEqOEwZhWWknL0/W8KSW9dASpb8lcPVdJUbIDdktQUrrK3c9qWlaQ8RDC9hPqRc2nJkXJIJCLhGkFAAZz3vP75/FBNco0NT73W4PyfKuk8fJwHA+T7in/+NGsuytSV0ZR7uXivsQmsySq/cSD+66estCjCgvQiCZwdOIL/LNojMWI1DsBBaesEOM7j9v5Xcf3FGRU1kT8S37+3MGjcX0XB+xJ6a16K23COtlSiMUahSwNMnAna/QkVmXrSTt14kMZZIHluBCUepuAX2yf8E3qeH35hoLAsGuBog/aMg/ny6SBmguRfptE9neimWCHZuCcB9hHTNlcfa1B+5ZUVw9tb0867m3giUC8RrgFnFquVW4kPNglrMrYxzm0KedCJJXbW6c=

View File

@ -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

View File

@ -1,7 +1,3 @@
[![License](https://img.shields.io/badge/MIT-License-green.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/aryszka/treerack.svg)](https://travis-ci.org/aryszka/treerack)
[![codecov](https://codecov.io/gh/aryszka/treerack/branch/master/graph/badge.svg)](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:
[http://localhost:8989/pkg/github.com/aryszka/syncbus/#example_](http://localhost:8989/pkg/github.com/aryszka/syncbus/#example_). https://godoc.org/code.squareroundforest.org/arpio/syncbus#example-package

View File

@ -5,7 +5,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/aryszka/syncbus" "code.squareroundforest.org/arpio/syncbus"
) )
type Server struct { type Server struct {

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module code.squareroundforest.org/arpio/syncbus
go 1.23.0