-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 1.06 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
CASSANDRA_VERSION ?= 3.9
.PHONY: clean test codestyle install-cassandra start-cassandra stop-cassandra
clean:
find bndl_cassandra -name '*.pyc' -exec rm -f {} +
find bndl_cassandra -name '*.pyo' -exec rm -f {} +
find bndl_cassandra -name '*.c' -exec rm -f {} +
find bndl_cassandra -name '*.so' -exec rm -f {} +
find bndl_cassandra -name '*~' -exec rm -f {} +
find bndl_cassandra -name '__pycache__' -exec rm -rf {} +
rm -rf build
rm -rf dist
rm -rf .coverage .coverage.* htmlcov
test:
rm -fr .coverage .coverage.* htmlcov
COVERAGE_PROCESS_START=.coveragerc \
coverage run -m pytest --junitxml build/junit.xml bndl_cassandra
coverage combine
coverage html -d build/htmlcov
coverage xml -o build/coverage.xml
codestyle:
pylint bndl_cassandra > build/pylint.log || :
flake8 bndl_cassandra > build/flake8.txt || :
install-cassandra:
ccm list | grep bndl_test || ccm create bndl_test -v binary:$(CASSANDRA_VERSION) -n 3
start-cassandra: install-cassandra
ccm switch bndl_test
ccm start --wait-for-binary-proto
stop-cassandra:
ccm stop || :
ccm remove || :