mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-19 12:18:21 +00:00
24 lines
542 B
Makefile
24 lines
542 B
Makefile
TRIAL := $(shell which trial)
|
|
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|
ifeq ($(BRANCH),master)
|
|
export SCRAPY_VERSION_FROM_GIT=1
|
|
endif
|
|
export PYTHONPATH=$(PWD)
|
|
|
|
test:
|
|
coverage run --branch $(TRIAL) --reporter=text scrapy.tests
|
|
rm -rf htmlcov && coverage html
|
|
-s3cmd sync -P htmlcov/ s3://static.scrapy.org/coverage-scrapy-$(BRANCH)/
|
|
|
|
build:
|
|
python extras/makedeb.py build
|
|
|
|
clean:
|
|
git checkout debian scrapy/VERSION
|
|
git clean -dfq
|
|
|
|
pypi:
|
|
umask 0022 && chmod -R a+rX . && python setup.py sdist upload
|
|
|
|
.PHONY: clean test build
|