forked from debops/debops-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (39 loc) · 1006 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
47
48
49
50
51
52
#
# This file is part of `debops`.
# Based on prior work from `gitflow`
# Copyright (c) 2010-2011 Vincent Driessen
# Copyright (c) 2012-2015 Hartmut Goebel
# Distributed under a BSD-like license.
#
.PHONY : all clean celan-files clean-all clean-tox
.PHONY : xunit-test test test-dist cover
.PHONY : dump-requirements install-requirements
.PHONY : dist
all: cover
clean: clean-files
clean-files:
find . -name '*.py[co]' -delete
rm -rf *.egg *.egg-info
rm -f nosetests.xml *.egg-lnk pip-log.txt
clean-all: clean-tox clean
rm -rf build dist .coverage
clean-tox:
rm -rf .tox
xunit-test:
nosetests --with-xunit
test:
nosetests --with-spec --spec-color
test-dist:
PIP_DOWNLOAD_CACHE=~/Projects/pkgrepo/pkgs
tox
cover:
nosetests --with-coverage3 --cover-package=gitflow --with-spec --spec-color
dump-requirements:
pip freeze -l > .requirements
install-requirements:
pip install -r .requirements
dist:
# ensure a clean build
rm -rf build
python setup.py sdist
python setup.py bdist