forked from charlieparkes/boto3-fixtures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1.2 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-include $(shell [ -e .build-harness ] || curl -sSL -o .build-harness "https://git.io/mintel-build-harness"; echo .build-harness)
.PHONY: init
init: bh/init
@$(MAKE) bh/venv pipenv
.PHONY: docs
docs: pipenv
$(WITH_PIPENV) $(MAKE) -C docs clean html
.PHONY: test
test: dummy_lambda/dist/build.zip pytest/k/unit pytest/k/integration
.PHONY: rebuild
rebuild: python/clean/dist clean-test-lambda python/dist build-test-lambda
dummy_lambda/dist/.venv:
$(WITH_PIPENV) pip install -r <(PIPENV_QUIET=1 pipenv --bare lock -r) --ignore-installed --target $@
.PHONY: build-test-lambda
build-test-lambda: # python/distif
@make dummy_lambda/dist/.venv
@# pip install dist/boto3-fixtures-*.tar.gz --target=dummy_lambda/dist/.venv --upgrade --no-deps --ignore-requires-python
@cd dummy_lambda; make build
dummy_lambda/dist/build.zip:
$(MAKE) build-test-lambda
.PHONY: clean-dummy-lambda
clean-test-lambda:
@cd dummy_lambda; make clean
.PHONY: release_patch
release_patch: bumpversion/release_patch
.PHONY: release_minor
release_minor: bumpversion/release_minor
.PHONY: release_major
release_major: bumpversion/release_major
.PHONY: clean
clean: python/clean/dist pipenv/clean python/clean clean-dummy-lambda
@$(MAKE) bh/clean