-
Notifications
You must be signed in to change notification settings - Fork 101
/
Makefile
46 lines (33 loc) · 982 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
# These targets are not files
.PHONY: contribute travis test lint coverage
clean:
# Remove files not in source control
find . -type f -name "*.pyc" -delete
rm -rf nosetests.xml coverage.xml htmlcov violations.txt
todo:
# Look for areas of the code that need updating when some event has taken place
grep --exclude-dir=components -rnH TODO reqs
grep --exclude-dir=components -rnH TODO accounting
grep --exclude-dir=components -rnH TODO tests
publish:
git push --tag origin master
rm -rf dist/*
python setup.py sdist
twine upload dist/*
## Testing
lint:
./lint.sh
test:
./runtests.py tests
coverage:
coverage run ./runtests.py --with-xunit tests
coverage xml -i
# This target is run on Travis.ci. We lint, test and build.
# We don't call 'install' first as that is run as a separate part
# of the Travis build process.
travis: lint coverage
## Install / Upgrade
install:
pip install -r requirements.txt
upgrade:
pip install --upgrade -r requirements.txt