forked from privacyidea/privacyideaadm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.29 KB
/
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
info:
@echo "pypi -- uplod to python package index"
@echo "builddeb -- build debian (ubuntu 14.04) package"
@echo "ppa-dev -- upload to ppa development repo"
@echo "ppa -- upload to ppa release repo"
@echo "man -- make the manpage"
@echo "test -- run tests"
#VERSION=2.1~dev4
VERSION=2.11~dev1
pypi:
make man
python setup.py sdist upload
clean:
find . -name \*.pyc -exec rm {} \;
rm -fr build/
rm -fr dist/
rm -fr DEBUILD
(cd doc; make clean)
man:
(cd doc; make man)
debianize:
make clean
make man
mkdir -p DEBUILD/privacyideaadm.org
cp -r * DEBUILD/privacyideaadm.org || true
cp LICENSE DEBUILD/privacyideaadm.org/debian/copyright
(cd DEBUILD; tar -zcf privacyideaadm_${VERSION}.orig.tar.gz --exclude=privacyideaadm.org/debian privacyideaadm.org)
builddeb:
make debianize
(cd DEBUILD/privacyideaadm.org; debuild)
ppa-dev:
make debianize
(cd DEBUILD/privacyideaadm.org; debuild -S)
# Upload to launchpad:
dput ppa:privacyidea/privacyidea-dev DEBUILD/privacyideaadm_${VERSION}*_source.changes
ppa:
make debianize
(cd DEBUILD/privacyideaadm.org; debuild -S)
dput ppa:privacyidea/privacyidea DEBUILD/privacyideaadm_${VERSION}-*_source.changes
test:
rm .coverage
nosetests -v --with-coverage --cover-package=privacyideautils --cover-html tests/test_clientutils.py