-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (23 loc) · 830 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
SWAGGER_FILE_NAME=swagger.yml
APIARY_API_NAME=playvideoapi
APIARY_WORK_DIR=/mnt/workspace/
DOCKER_IMG=samz/apiarycli
.PHONY: prepare
prepare:
@echo "Prepare"
if [ "${APIARY_API_KEY}" -eq "" ]
then
@echo "APIARY_API_KEY is missing, please export your APIARY_API_KEY"
fi
#docker pull ${DOCKER_IMG}
.PHONY: api-stylecheck
api-stylecheck: prepare
@echo ${APIARY_API_KEY}
#docker run --rm -e APIARY_API_KEY=${APIARY_API_KEY} -v $(PWD):${APIARY_WORK_DIR} ${DOCKER_IMG} styleguide --add=${APIARY_WORK_DIR}/${SWAGGER_FILE_NAME}
.PHONY: api-publish
api-publish:
@echo "Publish to apiary"
#docker run --rm -e APIARY_API_KEY=${APIARY_API_KEY} -v $(PWD):${APIARY_WORK_DIR} ${DOCKER_IMG} publish --api-name=${APIARY_API_NAME} --path=${APIARY_WORK_DIR}/${SWAGGER_FILE_NAME}
.PHONY: api-tests
api-tests:
@echo "Testing your API"