forked from getsentry/raven-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 957 Bytes
/
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
bootstrap:
pip install -e "file://`pwd`#egg=raven[tests]"
make setup-git
test: bootstrap lint
@echo "Running Python tests"
py.test -f tests
@echo ""
lint:
@echo "Linting Python files"
PYFLAKES_NODOCTEST=1 flake8 raven || exit 1
@echo ""
coverage:
coverage run runtests.py --include=raven/* && \
coverage html --omit=*/migrations/* -d cover
setup-git:
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
clean:
rm -rf dist build
publish: clean
python setup.py sdist bdist_wheel upload
dist: clean
python setup.py sdist bdist_wheel
install-zeus-cli:
npm install -g @zeus-ci/cli
travis-upload-dist: dist install-zeus-cli
zeus upload -t "application/zip+wheel" dist/* \
|| [[ ! "$(TRAVIS_BRANCH)" =~ ^release/ ]]
update-ca:
curl -sSL https://mkcert.org/generate/ -o raven/data/cacert.pem
.PHONY: bootstrap test lint coverage setup-git publish update-ca dist clean install-zeus-cli travis-upload-dist