forked from xataio/pgstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (19 loc) · 835 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: lint
lint: ## Lint source code
@echo "Linting source code..."
@go install github.com/golangci/golangci-lint/cmd/[email protected]
@golangci-lint run
.PHONY: test
test:
@go test -timeout 10m -race -cover -failfast ./...
.PHONY: integration-test
integration-test:
@PGSTREAM_INTEGRATION_TESTS=true go test -timeout 90s github.com/ApollosProject/pgstream-wal2json/pkg/stream/integration
.PHONY: license-check
license-check:
@curl -s https://raw.githubusercontent.com/lluissm/license-header-checker/master/install.sh | bash
@./bin/license-header-checker -a -r ./license-header.txt . go
.PHONY: gen-migrations
gen-migrations:
@go install github.com/go-bindata/go-bindata/...
@go-bindata -o migrations/postgres/migrations.go -pkg pgmigrations -ignore migrations.go -prefix "migrations/postgres/" migrations/postgres/