forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (41 loc) · 1009 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
43
44
45
46
47
48
49
50
51
52
SHELL = /bin/bash
dist:
rm -rf dist build
python setup.py sdist bdist_wheel
.PHONY: dist
.venv:
@virtualenv .venv
test: .venv
@pip install -r test-requirements.txt
@pip install --editable .
@pytest tests
.PHONY: test
format:
@black sentry_sdk tests
.PHONY: format
tox-test:
@sh ./scripts/runtox.sh
.PHONY: tox-test
lint:
@tox -e linters
.PHONY: lint
apidocs:
@pip install pdoc pygments
@pdoc --overwrite --html --html-dir build/apidocs sentry_sdk
.PHONY: apidocs
install-zeus-cli:
npm install -g @zeus-ci/cli
.PHONY: install-zeus-cli
travis-upload-docs:
@pip install --editable .
$(MAKE) apidocs
cd build/apidocs && zip -r gh-pages ./sentry_sdk
$(MAKE) install-zeus-cli
zeus upload -t "application/zip+docs" build/apidocs/gh-pages.zip \
|| [[ ! "$(TRAVIS_BRANCH)" =~ ^release/ ]]
.PHONY: travis-upload-docs
travis-upload-dist: dist
$(MAKE) install-zeus-cli
zeus upload -t "application/zip+wheel" dist/* \
|| [[ ! "$(TRAVIS_BRANCH)" =~ ^release/ ]]
.PHONY: travis-upload-dist