forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·40 lines (28 loc) · 1000 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
target:
$(info ${HELP_MESSAGE})
@exit 0
init:
pip install -e '.[dev]'
test:
pytest --cov samtranslator --cov-report term-missing --cov-fail-under 95 tests/*
integ-test:
pytest --no-cov integration/*
black:
black setup.py samtranslator/* tests/* integration/* bin/*.py
black-check:
black --check setup.py samtranslator/* tests/* integration/* bin/*.py
# Command to run everytime you make changes to verify everything works
dev: test
# Verifications to run before sending a pull request
pr: black-check init dev
# Verifications to run before sending a pull request, skipping black check because black requires Python 3.6+
pr2.7: init dev
define HELP_MESSAGE
Usage: $ make [TARGETS]
TARGETS
init Initialize and install the requirements and dev-requirements for this project.
test Run the Unit tests.
integ-test Run the Integration tests.
dev Run all development tests after a change.
pr Perform all checks before submitting a Pull Request.
endef