generated from MasoniteFramework/starter-package
-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathmakefile
More file actions
54 lines (49 loc) · 1.2 KB
/
makefile
File metadata and controls
54 lines (49 loc) · 1.2 KB
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
47
48
49
50
51
52
53
54
SHELL := /bin/bash
init: .env .bootstrapped-pip .git/hooks/pre-commit
init-ci:
touch .ignore-pre-commit
make init
.bootstrapped-pip: requirements.txt requirements.dev
pip install -r requirements.txt -r requirements.dev
touch .bootstrapped-pip
.git/hooks/pre-commit:
@if ! test -e ".ignore-pre-commit"; then \
pip install pre-commit; \
pre-commit install --install-hooks; \
fi
.env:
cp .env-example .env
# Create MySQL Database
# Create Postgres Database
test: init
python -m pytest tests
ci:
make test
check: format sort lint
lint:
flake8 src/masoniteorm/
format: init
black src/masoniteorm tests/
sort: init
isort src/masoniteorm tests/
coverage:
python -m pytest --cov-report term --cov-report xml --cov=src/masoniteorm tests/
python -m coveralls
show:
python -m pytest --cov-report term --cov-report html --cov=src/masoniteorm tests/
cov:
python -m pytest --cov-report term --cov-report xml --cov=src/masoniteorm tests/
publish:
pip install twine
make test
python setup.py sdist
twine upload dist/*
rm -fr build dist .egg masonite.egg-info
rm -rf dist/*
pub:
python setup.py sdist
twine upload dist/*
rm -fr build dist .egg masonite.egg-info
rm -rf dist/*
pypirc:
cp .pypirc ~/.pypirc