-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdodo.py
45 lines (35 loc) · 1.21 KB
/
dodo.py
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
def task_buildimages():
"""buildimages
Build and push local Docker image.
"""
return {
"actions": [
"cd ops/ci && docker build -t ghcr.io/confidenceman02/django-elm/djelm:5 .",
"docker push ghcr.io/confidenceman02/django-elm/djelm:5",
],
"targets": [],
}
def task_install_e2e_browser():
"Install playwright browser"
return {"actions": ["playwright install"]}
def task_run_example():
"startenv"
return {
"actions": [
"cd example && python manage.py migrate",
"cd example && python manage.py seed",
"cd example && python manage.py runserver",
]
}
def task_prepare_e2e_tests():
"startenv"
return {
"actions": [
"cd example && python manage.py migrate",
"cd example && python manage.py seed",
"cd example && python manage.py djelm addprogram elm_programs Main",
"cd example && python manage.py djelm addwidget elm_programs ModelChoiceField --no-deps",
"cd example && python manage.py djelm addwidget elm_programs ModelMultipleChoiceField --no-deps",
"cd example && python manage.py runserver",
]
}