@@ -22,22 +22,22 @@ build:
2222 -a main.go
2323
2424test :
25- go test -v ./...
25+ go test -count=1 -failfast - v ./...
2626
2727lintci :
2828 docker run --rm \
2929 -v $(CURDIR ) :/app \
3030 -w /app \
3131 -e GOLANGCI_ADDITIONAL_YML=/app/build/ci/.golangci.yml \
32- quay.io/mittwald/golangci-lint:0.0.29 \
32+ quay.io/mittwald/golangci-lint:0.0.37 \
3333 golangci-lint run -v --fix ./...
3434
3535lint :
3636 docker run --rm \
3737 -v $(shell go env GOPATH) :/go \
3838 -v ${CURDIR} :/app -w /app \
3939 -e GOLANGCI_ADDITIONAL_YML=/app/build/ci/.golangci.yml \
40- quay.io/mittwald/golangci-lint:0.0.29 \
40+ quay.io/mittwald/golangci-lint:0.0.37 \
4141 golangci-lint run -v --fix ./...
4242
4343goreleaser :
@@ -48,25 +48,35 @@ upTestMongo: downTestMongo
4848 docker-compose --file example/docker-compose/mongo.yml up -d
4949
5050downTestMongo :
51- docker- compose --file example/docker-compose/mongo.yml down -v --remove-orphans
51+ docker compose --file example/docker-compose/mongo.yml down -v --remove-orphans
5252
5353upTestMysql : downTestMysql
5454 trap ' cd $(CURDIR) && make downTestMysql' 0 1 2 3 6 9 15
55- docker- compose --file example/docker-compose/mysql.yml up -d
55+ docker compose --file example/docker-compose/mysql.yml up -d
5656
5757downTestMysql :
58- docker- compose --file example/docker-compose/mysql.yml down -v --remove-orphans
58+ docker compose --file example/docker-compose/mysql.yml down -v --remove-orphans
5959
6060upTestPostgres : downTestPostgres
6161 trap ' cd $(CURDIR) && make downTestPostgres' 0 1 2 3 6 9 15
62- docker- compose --file example/docker-compose/postgresql.yml up -d
62+ docker compose --file example/docker-compose/postgresql.yml up -d
6363
6464downTestPostgres :
65- docker- compose --file example/docker-compose/postgresql.yml down -v --remove-orphans
65+ docker compose --file example/docker-compose/postgresql.yml down -v --remove-orphans
6666
6767upTestRedis : downTestRedis
6868 trap ' cd $(CURDIR) && make downTestRedis' 0 1 2 3 6 9 15
69- docker- compose --file example/docker-compose/redis.yml up -d
69+ docker compose --file example/docker-compose/redis.yml up -d
7070
7171downTestRedis :
72- docker-compose --file example/docker-compose/redis.yml down -v --remove-orphans
72+ docker compose --file example/docker-compose/redis.yml down -v --remove-orphans
73+
74+ runLocalPostgres :
75+ make build
76+ docker build -f build/docker/Dockerfile . -t brudi
77+ docker run --rm --add-host=host.docker.internal:host-gateway -v ./example/config/.brudi.postgresql.yaml:/home/brudi/.brudi.yaml brudi pgdump
78+
79+ runLocalMysql :
80+ make build
81+ docker build -f build/docker/Dockerfile . -t brudi
82+ docker run --rm --add-host=host.docker.internal:host-gateway -v ./example/config/.brudi.mysql.yaml:/home/brudi/.brudi.yaml brudi mysqldump
0 commit comments