-
Notifications
You must be signed in to change notification settings - Fork 583
/
Copy pathMakefile
24 lines (18 loc) · 1.19 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
test-all: lint test functional-test coverage-report
lint:
pycodestyle --statistics aliyun-python-sdk-core/ --max-line-length=120 --ignore=W391,E121,E123,E126,E226,E24,E704,W503,W504 --exclude=DescribeEndpointsRequest.py,vendored
pycodestyle --statistics python-sdk-functional-test/ --max-line-length=120 --ignore=W391,E121,E123,E126,E226,E24,E704,W503,W504
test:
coverage run --branch --source="./aliyun-python-sdk-core/aliyunsdkcore" -m pytest aliyun-python-sdk-core/tests/
functional-test:
bash -e ./run_all_test.sh
coverage-report:
coverage report --include="aliyun-python-sdk-core/aliyunsdkcore/*" --omit="aliyun-python-sdk-core/aliyunsdkcore/vendored/*,aliyun-python-sdk-core/aliyunsdkcore/compat.py,aliyun-python-sdk-core/aliyunsdkcore/data/*"
coverage html --include="aliyun-python-sdk-core/aliyunsdkcore/*" --omit="aliyun-python-sdk-core/aliyunsdkcore/vendored/*,aliyun-python-sdk-core/aliyunsdkcore/compat.py,aliyun-python-sdk-core/aliyunsdkcore/data/*"
release-core:
bash -ex release-core.sh core dist
bash -ex release-core.sh core test
bash -ex release-core.sh core release
bash -ex release-core.sh core-v3 dist
bash -ex release-core.sh core-v3 test
bash -ex release-core.sh core-v3 release