-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
29 lines (20 loc) · 734 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
SERVER= https://api.monarchinitiative.org/api
SERVER_DEV= http://localhost:5000/api
SWAGGER= $(SERVER)/swagger.json
test: behave-tests
behave-tests:
cd tests && behave
CLIENT_LANGS = javascript java python
CLIENT_TARGETS = $(patsubst %, biolink-%-client, $(CLIENT_LANGS))
clients: $(CLIENT_TARGETS)
# generate client code for javascript, python etc
# after making this, copy to separate repo
biolink-%-client: swagger.json
swagger-codegen generate -i $(SWAGGER) -l $* -o $@
deploy-%-client: biolink-%-client
cp -pr $</* ../$<
deploy-clients: $(patsubst %, deploy-%-client, $(CLIENT_LANGS))
swagger.json:
wget --no-check-certificate $(SWAGGER) -O $@
EXAMPLE-QUERIES.md:
./util/behave-to-markdown.pl tests/*.feature > $@