generated from teamdigitale/api-starter-kit-java
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 946 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 946 Bytes
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
#
# Prepare openapi files and run projects in containers.
#
YAML=$(shell find * -name \*yaml)
YAMLSRC=$(shell find openapi -name \*yaml.src)
YAMLGEN=$(patsubst %.yaml.src,%.yaml,$(YAMLSRC))
yaml: $(YAMLGEN)
.ONESHELL:
%.yaml: %.yaml.src
tox -e yamllint -- -d relaxed $<
tox -e yaml 2>/dev/null -- $< $@
yamllint: $(YAML)
tox -e yamllint -- $<
python-flask-generate: openapi/simple.yaml
wget -nc -O scripts/swagger-codegen-cli.jar https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.10/swagger-codegen-cli-3.0.10.jar
java -jar scripts/swagger-codegen-cli.jar generate -l python-flask -i openapi/simple.yaml -o python-flask
python-flask: python-flask-generate
(cd python-flask && docker-compose up --build test )
python-flask-quickstart: python-flask-generate
# Test all
(cd python-flask && docker-compose up --build test )
# Build and run the application
(cd python-flask && docker-compose up simple )