forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (58 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# this is just a convenience for developers, and to automate the release
# process a little bit. This Makefile is not included in the source tarball.
BBBASE = $(PWD)
TRIALARGS=
ifdef SVN
T=~/stuff/python/twisted/Twisted
TRIALARGS=--reporter=verbose
else
T=
endif
ifdef T13
T=~/stuff/python/twisted/Twisted-1.3.0
TRIALARGS=-v
endif
PP = PYTHONPATH=$(BBBASE):$(T)
.PHONY: test
TRIAL=trial
TEST=buildbot.test
test:
$(PP) $(TRIAL) $(TRIALARGS) $(TEST)
test-coverage:
$(PP) $(TRIAL) --reporter=bwverbose-coverage $(TEST)
PYTHON=python
COVERAGE_OMIT = --omit /System,/Library,/usr/lib,buildbot/test,simplejson
coverage-output-text:
$(PYTHON) contrib/coverage2text.py
coverage-output:
rm -rf coverage-html
coverage html -d coverage-html $(COVERAGE_OMIT)
cp .coverage coverage-html/coverage.data
@echo "now point your browser at coverage-html/index.html"
#debuild -uc -us
deb-snapshot:
debchange --newversion `PYTHONPATH=. python -c "import buildbot; print buildbot.version"`.`date +%Y.%m.%d.%H.%M.%S` \
"snapshot build"
debuild binary
.PHONY: docs apidocs some-apidocs paper
docs:
$(MAKE) -C docs
apidocs:
PYTHONPATH=.:$(T) python docs/epyrun -o docs/reference
some-apidocs:
PYTHONPATH=.:$(T) python docs/epyrun -o docs/reference --modules $(EPYDOCS)
paper:
$(MAKE) -C docs/PyCon-2003 all
release: docs
chmod 0755 .
find buildbot contrib docs -type d -exec chmod 0755 {} \;
find bin buildbot contrib docs -type f -exec chmod 0644 {} \;
chmod 0644 MANIFEST* NEWS README* setup.py
chmod a+x bin/buildbot contrib/*.py contrib/windows/*.py
rm -rf _trial_temp
python ./setup.py clean
rm -f MANIFEST
python ./setup.py sdist --formats gztar,zip
FLAKES=buildbot
pyflakes:
pyflakes $(FLAKES) |sort |uniq