-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 837 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
30
31
32
image_name=e-ink-dash
test_cmd="python dash_tests.py && python integration_tests.py && pixelmatch expected.png actual.png diff.png"
docker_run=docker run -it --rm -v $(shell pwd):/home/app -w /home/app $(image_name)-dev
# Can be overridden
TAG:=latest
REPO:=hanneskaeufler
push:
docker push $(REPO)/$(image_name):$(TAG)
build:
docker build . -t $(REPO)/$(image_name):$(TAG)
build-dev:
docker build . -f Dockerfile.dev -t $(image_name)-dev
check-code-style:
$(docker_run) pycodestyle .
fix-code-style:
$(docker_run) autopep8 --in-place --recursive .
ci: check-code-style test
test:
$(docker_run) /bin/sh -c $(test_cmd)
test-coverage:
$(docker_run) /bin/sh -c "coverage run --source=. --omit=*_tests.py dash_tests.py && coverage report && coverage xml"
.PHONY: build build-dev test ci push check-code-style fix-code-style