-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 999 Bytes
/
Makefile
File metadata and controls
42 lines (34 loc) · 999 Bytes
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
#!make
export PYTHON_VERSION := 3.8
#SHELL := /bin/bash
install-dev:
@+pipenv install --python ${PYTHON_VERSION} --dev
install:
@+pipenv install --python ${PYTHON_VERSION}
clean:
rm -rf venv
rm -rf ./dist/bexh-email-aws-lambda.zip
build:
{ \
set -e ;\
python3 -m venv venv ;\
. venv/bin/activate ;\
python -m pip install --upgrade pip ;\
pip install -r requirements.txt ;\
mkdir -p dist ;\
cd venv/lib/python3.8/site-packages ;\
zip -r9 $${OLDPWD}/dist/bexh-email-aws-lambda.zip . ;\
cd $${OLDPWD} ;\
zip -g -r ./dist/bexh-email-aws-lambda.zip ./main/ ;\
}
test:
pipenv run pytest -q main/test/tests.py
help:
{ \
echo 'Commands:' ;\
echo ' clean Cleans venv and package from old builds' ;\
echo ' build Bundle package for deployment' ;\
echo ' test Runs all test cases' ;\
echo ' install Installs pipfile libraries' ;\
echo ' install-dev Installs pipfile libraries for development purposes' ;\
}