-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (25 loc) · 969 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
.PHONY: test
test:
@echo =============================== TEST ================================
@coverage run -m unittest discover -v
.PHONY: coverage
coverage: test
@echo ============================= COVERAGE ==============================
@coverage report --omit="*__init__.py","test/*","env/*"
.PHONY: coverage-html
coverage-html: test
@echo ============================= COVERAGE ==============================
@echo -n Creating coverage report...
@rm -rf htmlcov
@coverage html --omit="*__init__.py","test/*","env/*"
@echo Done!
.PHONY: doc
doc:
@echo ================== DOC ========================
@sphinx-apidoc -feo docs/source geoserver geoserver/cli
@cd docs && make clean html
.PHONY: docker-run
docker-run:
@echo ========================= DOCKER RUN =========================
@echo Starting Docker...
docker run -d -p 8080:8080 -v ${PWD}/test/geoserver_data_dir:/var/local/geoserver --name=geoserver-cli-test oscarfonts/geoserver:latest