-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 765 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 765 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
31
32
33
34
35
export PATH := .rocks/bin:$(PATH)
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
TEST_RUN_EXTRA_PARAMS?=
PYTHON?=python
default:
false
lint: flake8 luacheck
flake8:
$(PYTHON) -m flake8 *.py lib/*.py
luacheck:
luacheck --config .luacheckrc .
test_integration:
PYTHONPATH=$(PROJECT_DIR) $(PYTHON) test/test-run.py --force --exclude unittest $(TEST_RUN_EXTRA_PARAMS)
test_unittest:
$(PYTHON) -m unittest discover test/unittest/
test: test_unittest test_integration
coverage:
PYTHON="coverage run" make -f $(MAKEFILE_PATH) test
coverage combine $(PROJECT_DIR) $(PROJECT_DIR)/test
coverage report
clean:
coverage erase
.PHONY: lint flake8 luacheck test test_integration test_unittest