generated from ash2shukla/streamlit-heroku
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
67 lines (60 loc) · 1.83 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# SHELL=/bin/bash
# .PHONY: build
# .PHONY: pylint
# # Run "black", our Python formatter, to verify that our source files
# # are properly formatted. Does not modify any files. Returns with a non-zero
# # status if anything is not properly formatted. (This isn't really
# # "linting"; we're not checking anything but code style.)
# pylint:
# if command -v "black" > /dev/null; then \
# $(BLACK) --check docs/ ; \
# $(BLACK) --check examples/ ; \
# $(BLACK) --check lib/streamlit/ --exclude=/*_pb2.py$/ ; \
# $(BLACK) --check lib/tests/ ; \
# $(BLACK) --check e2e/scripts/ ; \
# fi
# .PHONY: pyformat
# # Run "black", our Python formatter, to fix any source files that are not
# # properly formatted.
# pyformat:
# if command -v "black" > /dev/null; then \
# $(BLACK) docs/ ; \
# $(BLACK) examples/ ; \
# $(BLACK) lib/streamlit/ --exclude=/*_pb2.py$/ ; \
# $(BLACK) lib/tests/ ; \
# $(BLACK) e2e/scripts/ ; \
# fi
# .PHONY: pytest
# # Run Python unit tests.
# pytest:
# # Just testing. No code coverage.
# cd lib; \
# PYTHONPATH=. \
# pytest -v \
# --junitxml=test-reports/pytest/junit.xml \
# -l tests/ \
# $(PYTHON_MODULES)
# .PHONY: pycoverage
# # Show Python test coverage.
# pycoverage:
# # testing + code coverage
# cd lib; \
# PYTHONPATH=. \
# pytest -v \
# --junitxml=test-reports/pytest/junit.xml \
# -l $(foreach dir,$(PYTHON_MODULES),--cov=$(dir)) \
# --cov-report=term-missing tests/ \
# $(PYTHON_MODULES)
# .PHONY: deploy
# deploy:
# curl --netrc -X PATCH https://api.heroku.com/apps/$(APP)/formation \
# -d '{
# "updates": [
# {
# "type": "web",
# "docker_image": "'"${IMAGE_ID}"'"
# }
# ]}' \
# -H "Content-Type: application/json" \
# -H "Accept: application/vnd.heroku+json; version=3.docker-releases"\
# -H "Authorization: Bearer ${HEROKU_KEY}"