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:
|
2014-08-01 15:29:59 -03:00
|
|
|
test $(BRANCH) != master || git describe >scrapy/VERSION
|
2010-11-17 17:03:00 -02:00
|
|
|
python extras/makedeb.py build
|
|
|
|
|
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
|