-
Notifications
You must be signed in to change notification settings - Fork 0
/
Earthfile
42 lines (37 loc) · 1.86 KB
/
Earthfile
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
VERSION 0.6
ARG PYTHONVERSION=3.12
ARG NIMVERSION=2.0.0
FROM alpine:3.15 # Is only used for formatting, so image can be as small as possible
# Run autoformatter on all projects
format:
BUILD ./burny_common+format
BUILD ./discord_bot+format
BUILD ./fastapi_server+format
BUILD ./python_examples+format
BUILD ./twitch_stream_announcer+format
BUILD ./transcribe_website/transcriber_backend+format
install-all:
BUILD ./burny_common+install-dev --PYTHONVERSION=${PYTHONVERSION}
BUILD ./discord_bot+install-dev --PYTHONVERSION=${PYTHONVERSION}
BUILD ./fastapi_server+install-dev --PYTHONVERSION=${PYTHONVERSION}
BUILD ./python_examples+install-dev --PYTHONVERSION=${PYTHONVERSION}
BUILD ./twitch_stream_announcer+install-dev --PYTHONVERSION=${PYTHONVERSION}
BUILD ./transcribe_website/transcriber_backend+install-dev --PYTHONVERSION=${PYTHONVERSION}
pre-commit:
BUILD ./burny_common+pre-commit --PYTHONVERSION=${PYTHONVERSION}
BUILD ./discord_bot+pre-commit --PYTHONVERSION=${PYTHONVERSION}
BUILD ./fastapi_server+pre-commit --PYTHONVERSION=${PYTHONVERSION}
BUILD ./python_examples+pre-commit --PYTHONVERSION=${PYTHONVERSION}
BUILD ./twitch_stream_announcer+pre-commit --PYTHONVERSION=${PYTHONVERSION}
BUILD ./transcribe_website/transcriber_backend+pre-commit --PYTHONVERSION=${PYTHONVERSION}
check-all:
BUILD ./burny_common+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./discord_bot+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./fastapi_server+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./python_examples+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./transcribe_website/transcriber_backend+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./twitch_stream_announcer+all --PYTHONVERSION=${PYTHONVERSION}
BUILD ./nim_examples+all --NIMVERSION=${NIMVERSION}
# Run format-checks, linter and tests
all:
BUILD +check-all