-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
35 lines (25 loc) · 1000 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
33
34
35
install:
pip install -U -e .[dev]
test:
pytest -vv -o log_cli=true -o log_cli_level=warning
coverage:
pytest -vv --cov=indexdigest --cov-report=term-missing --cov-report=html --cov-fail-under=96
lint:
pylint indexdigest/ --ignore=test
demo:
docker run --network=host -t macbre/index-digest:latest mysql://index_digest:qwerty@127.0.0.1/index_digest --analyze-data --skip-checks=non_utf_columns --skip-tables=0028_no_time
sql-console:
mysql --prompt='mysql@\h[\d]>' --protocol=tcp --port=53306 -uindex_digest -pqwerty index_digest
publish:
# run git tag -a v0.0.0 before running make publish
python setup.py sdist
twine upload --skip-existing dist/*
# docker (tag with commit ID)
VERSION = "1.2.1-"$(shell git rev-parse --short HEAD)
build:
@docker build -t macbre/index-digest:$(VERSION) . \
&& docker tag macbre/index-digest:$(VERSION) macbre/index-digest:latest
push: build
@docker push macbre/index-digest:$(VERSION) \
&& docker push macbre/index-digest:latest
.PHONY: build