forked from aws/aws-lambda-builders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 793 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
init:
LAMBDA_BUILDERS_DEV=1 pip install -e '.[dev]'
test:
# Run unit tests
# Fail if coverage falls below 94%
LAMBDA_BUILDERS_DEV=1 pytest --cov aws_lambda_builders --cov-report term-missing --cov-fail-under 94 tests/unit tests/functional
func-test:
LAMBDA_BUILDERS_DEV=1 pytest tests/functional
integ-test:
# Integration tests don't need code coverage
LAMBDA_BUILDERS_DEV=1 pytest tests/integration
flake:
# Make sure code conforms to PEP8 standards
flake8 lambda_builders
flake8 tests/unit tests/integration
lint:
# Liner performs static analysis to catch latent bugs
pylint --rcfile .pylintrc aws_lambda_builders
# Command to run everytime you make changes to verify everything works
dev: flake lint test
# Verifications to run before sending a pull request
pr: init dev