-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (39 loc) · 979 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
46
.PHONY: clean virtualenv test docker dist dist-upload
clean:
find . -name '*.py[co]' -delete
rm -rf dist
rm -rf build
rm -rf .eggs
rm -rf .pytest_cache
rm -rf coverage-report
rm -rf .coverage
rm -rf *.egg-info
rm -rf tests/integration/X-Road
rm -rf tests/end_to_end/.pytest_cache
virtualenv:
virtualenv --prompt '|> xrdsst <| ' env
env/bin/pip install -r requirements-dev.txt
env/bin/python setup.py develop
@echo
@echo "VirtualENV Setup Complete. Now run: source env/bin/activate"
@echo
install:
python setup.py install
test: clean
python -m pytest \
-v \
--cov=xrdsst/controllers \
--cov-report=term \
--cov-report=html:coverage-report \
tests/unit\
lint: clean
pylint --exit-zero --output-format=colorized --reports=y --rcfile=setup.cfg xrdsst tests
test-all: clean
python -m pytest \
-v \
--cov=xrdsst/controllers \
--cov-report=term \
--cov-report=html:coverage-report \
tests\
dist: clean
python setup.py sdist bdist_wheel