-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 844 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 844 Bytes
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
help: ## show help message.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: # build dev docker image.
docker-compose -f docker-compose.dev.yml build labeledmatrix
rebuild: # Force rebuild the image
rm -rf build/
rm -rf dist/
rm -rf *egg*/
docker-compose -f docker-compose.dev.yml build --no-cache labeledmatrix
DOCKER_CMD := docker-compose -f docker-compose.dev.yml run --rm labeledmatrix
shell: build
$(DOCKER_CMD) /bin/bash
test: build
$(DOCKER_CMD) pytest
lint: build
$(DOCKER_CMD) pylint
build_lock: # build docker image for pipenv lock
docker-compose -f docker-compose.dev.yml build lock
DOCKER_LOCK_CMD := docker-compose -f docker-compose.dev.yml run --rm lock
lock: build_lock
$(DOCKER_LOCK_CMD) pipenv lock --verbose