2010-12-15 11:13:45 -02:00
|
|
|
TRIAL := $(shell which trial)
|
2013-02-06 05:05:06 +00:00
|
|
|
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|
|
|
export PYTHONPATH=$(PWD)
|
2010-12-15 11:13:45 -02:00
|
|
|
|
2013-02-06 05:05:06 +00:00
|
|
|
test:
|
2014-08-05 04:15:25 -07:00
|
|
|
coverage run --branch $(TRIAL) --reporter=text tests
|
2013-02-06 05:05:06 +00:00
|
|
|
rm -rf htmlcov && coverage html
|
|
|
|
-s3cmd sync -P htmlcov/ s3://static.scrapy.org/coverage-scrapy-$(BRANCH)/
|
|
|
|
|
|
|
|
build:
|
2015-06-15 20:51:37 -03:00
|
|
|
git describe --tags --match '[0-9]*' |sed 's/-/.post/;s/-g/+g/' >scrapy/VERSION
|
|
|
|
debchange -m -D unstable --force-distribution -v \
|
|
|
|
$$(python setup.py --version |sed -r 's/([0-9]+.[0-9]+.[0-9]+)(a|b|rc|dev)([0-9]*)/\1~\2\3/')-$$(date +%s) \
|
|
|
|
"Automatic build"
|
2015-06-15 14:39:10 -03:00
|
|
|
debuild -us -uc -b
|
2010-11-17 17:03:00 -02:00
|
|
|
|
2013-02-06 05:05:06 +00:00
|
|
|
clean:
|
2013-02-06 11:44:26 -02:00
|
|
|
git checkout debian scrapy/VERSION
|
2013-02-06 05:05:06 +00:00
|
|
|
git clean -dfq
|
2013-02-08 15:07:00 -02:00
|
|
|
|
2013-09-03 23:21:29 -03:00
|
|
|
pypi:
|
|
|
|
umask 0022 && chmod -R a+rX . && python setup.py sdist upload
|
|
|
|
|
2013-02-08 15:07:00 -02:00
|
|
|
.PHONY: clean test build
|