-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 927 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
#GENERATOR=/opt/atricore/tools/openapi-generator-cli/openapi-generator-cli.sh
#GENERATOR=/data/atricore/tools/openapi-generator-cli/openapi-generator-cli.sh
# Provided by nix
GENERATOR=openapi-generator-cli
OPENAPI_GENERATOR_VERSION=6.2.1
#SWAGGER_FILE=~/.m2/repository/com/atricore/idbus/console/console-api/1.4.3-SNAPSHOT/console-api-1.4.3-SNAPSHOT-swagger.yaml
#SWAGGER_FILE=./console-api-1.4.3-SNAPSHOT-swagger.yaml
SWAGGER_FILE=./console-api-1.5.1-SNAPSHOT-swagger.json
PGK_NAME=jossoappi
default: all
build:
go install
dep: # Download required dependencies
go mod tidy
go mod vendor
test:
go test
generate:
OPENAPI_GENERATOR_VERSION=${OPENAPI_GENERATOR_VERSION} $(GENERATOR) generate -i $(SWAGGER_FILE) -g go -o . --additional-properties=packageName=$(PGK_NAME) --additional-properties=disallowAdditionalPropertiesIfNotPresent=false --git-repo-id=josso-api-go --git-user-id=atricore
all: generate dep build