forked from cloudentity/openbanking-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 866 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
24
25
26
27
28
29
30
31
32
33
34
35
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
.EXPORT_ALL_VARIABLES: ;
.PHONY: build
build:
docker-compose build
.PHONY: run
run:
docker-compose up -d
.PHONY: lint
lint:
golangci-lint run --fix --deadline=5m ./...
.PHONY: stop
stop:
docker-compose stop
.PHONY: clean
clean:
docker-compose down -v
swagger = docker run --rm -it -e GOPATH=/go \
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \
-v $(shell pwd):/go/src \
-w $(shell pwd)/src quay.io/goswagger/swagger
generate:
rm -fr openbanking
mkdir -p openbanking/accountinformation openbanking/paymentinitiation
${swagger} generate client -f /go/src/api/accounts.yaml -A OpenbankingAccountsClient -t /go/src/openbanking/accountinformation
${swagger} generate client -f /go/src/api/paymentinitiation.yaml -A OpenbankingPaymentsClient -t /go/src/openbanking/paymentinitiation