-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
46 lines (33 loc) · 1.09 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
40
41
42
43
44
45
46
.PHONY: build
dependencies:
python --version
pip install -U -r build-requirements.txt
python setup.py develop
test:
py.test --cov-branch --cov-report html --cov-report term-missing --cov=formica tests/unit
check-code:
black --check --verbose ./formica
pyflakes ./formica
grep -r 'print(' formica; [ "$$?" -gt 0 ]
mutation:
mutmut run
integration-test:
py.test -s tests/integration
build-dev:
docker-compose build formica
shell: build-dev
touch .bash_history
docker-compose run formica bash
clean:
rm -fr dist/* build/* formica_cli.egg-info/* htmlcov/* .pytest-cache/*
release-pypi:
docker-compose run formica bash -c "make clean && python setup.py sdist bdist_wheel && pandoc --from=markdown --to=rst --output=build/README.rst README.md && twine upload dist/*"
release-docker:
docker build --no-cache -t flomotlik/formica -f Release.Dockerfile .
docker push flomotlik/formica
release: release-pypi release-docker
install:
docker build -t flomotlik/formica:whalebrew -f Whalebrew.Dockerfile .
whalebrew install -f flomotlik/formica:whalebrew
update-usage:
bash scripts/replace-usage.bash