-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile
More file actions
executable file
·47 lines (40 loc) · 777 Bytes
/
Taskfile
File metadata and controls
executable file
·47 lines (40 loc) · 777 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
43
44
45
46
47
function help {
echo "$0 <task> <args>"
echo "Tasks:"
compgen -A function | cat -n
}
function setup {
python3 -m venv .venv
install
build
}
function install {
source .venv/bin/activate
pip install -U -r requirements.txt
pip install -U -r requirements-dev.txt
}
function build {
source .venv/bin/activate
cd layers
mkdir ./python && true
pip install -U -r requirements-app.txt -t ./python
zip -r deps-layer.zip ./python
}
function deploy {
source .venv/bin/activate
install
build
cdk synth
cdk deploy
}
function clean {
rm -rf layers/python/*
rm layers/deps-layer.zip
rm -rf cdk.out
}
function reset {
clean
rm -rf .venv
}
TIMEFORMAT="Task completed in %3lR"
time ${@:-help}