Skip to content
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
etc/out/
vendor/
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.PHONY: all


all: setup build test lint

setup:
if [ ! -e $(shell go env GOPATH)/bin/golangci-lint ] ; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.31.0 ; fi;

build:
go build ./...

dep:
go mod tidy

lint:
golangci-lint run --disable-all \
--enable=staticcheck --enable=unused --enable=gosimple --enable=structcheck --enable=varcheck --enable=ineffassign \
--enable=deadcode --enable=typecheck --enable=stylecheck --enable=gosec --enable=unconvert --enable=gofmt \
--enable=unparam --enable=nakedret --enable=gochecknoinits --enable=depguard --enable=gocyclo --enable=misspell \
--enable=megacheck --enable=goimports --enable=golint \
--deadline=5m --no-config

lint-strict:
golangci-lint run --enable-all

test:
mkdir -p ./etc/out
ENVIRONMENT=test go test -failfast -count 1 -timeout 30s -covermode=atomic -coverprofile=etc/out/profile.cov ./... && go tool cover -func=etc/out/profile.cov

docker.start: docker.stop
docker run -d --rm -p 6379:6379 --name work-redis-server redis:latest || true

docker.stop:
docker stop work-redis-server || true
124 changes: 0 additions & 124 deletions benches/bench_goworker/main.go

This file was deleted.

132 changes: 0 additions & 132 deletions benches/bench_goworkers/main.go

This file was deleted.

Loading