-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 677 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
post-install:
python -m textblob.download_corpora
lint:
pylint --disable=R,C *.py devopslib
test:
python -m pytest -vv test_*.py
format:
black *.py devopslib/*.py
deploy:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 949510079382.dkr.ecr.us-east-1.amazonaws.com
docker build -t python-devops-2022 .
docker tag python-devops-2022:latest 949510079382.dkr.ecr.us-east-1.amazonaws.com/python-devops-2022:latest
docker push 949510079382.dkr.ecr.us-east-1.amazonaws.com/python-devops-2022:latest
all: install post-install lint test format deploy