Makefile 405 Bytes
Newer Older
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
30
31
AUR_WEB := conf/config

.PHONY: test
test:
	python -m aurweb.initdb

	# Test everything!
	make -C test

	# Produce a coverage report.
	coverage report --include='aurweb/*'

# Docker wrappers

define docker
	docker-compose run \
		--rm \
		--entrypoint $(1) \
		aurweb-fastapi \
		$(2)
endef


define docker-make
	$(call docker,make,$(1))
endef

.PHONY: docker-test
docker-test:
	$(call docker-make,test)