-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (31 loc) · 1017 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
36
37
38
39
40
41
42
43
44
45
.PHONY: clean all deps pypi-test test install
.PHONY: lint pypi pypi-test release
all: deps develop test lint
deps:
. venv/bin/activate && pip install --upgrade pip
. venv/bin/activate && pip install -r requirements.txt
venv:
virtualenv venv
scheme-unit-tests:
. venv/bin/activate && ./smallscheme/main.py -t tests.scm
test: scheme-unit-tests
. venv/bin/activate && pytest -s
. venv/bin/activate && ./smallscheme/main.py fact.scm
lint:
. venv/bin/activate && pycodestyle smallscheme
develop:
. venv/bin/activate && python setup.py develop
clean:
rm -rf *.egg-info dist .pytest_cache *.html venv
pypi-test:
. venv/bin/activate && twine upload -r testpypi dist/*.tar.gz
pypi:
. venv/bin/activate && twine upload -r smallscheme dist/*.tar.gz
pip-docker-test:
docker build -t smallscheme-pip-test -f Dockerfile.piptest .
build-docker-test:
docker build -t smallscheme -f Dockerfile.build .
alltests: test lint build-docker-test
release:
./bumpver
. venv/bin/activate && python setup.py sdist