2020-07-28 02:05:42 +08:00
|
|
|
root = "."
|
|
|
|
tmp_dir = ".air"
|
|
|
|
|
|
|
|
[build]
|
2024-04-15 16:24:36 +08:00
|
|
|
pre_cmd = ["killall -9 gitea 2>/dev/null || true"] # kill off potential zombie processes from previous runs
|
2023-05-25 04:11:04 +08:00
|
|
|
cmd = "make --no-print-directory backend"
|
2020-07-28 02:05:42 +08:00
|
|
|
bin = "gitea"
|
2024-04-15 16:24:36 +08:00
|
|
|
delay = 2000
|
2020-07-28 02:05:42 +08:00
|
|
|
include_ext = ["go", "tmpl"]
|
2023-04-23 02:53:00 +08:00
|
|
|
include_file = ["main.go"]
|
2022-12-27 14:00:34 +08:00
|
|
|
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
|
2024-03-21 10:17:59 +08:00
|
|
|
exclude_dir = [
|
|
|
|
"models/fixtures",
|
|
|
|
"models/migrations/fixtures",
|
|
|
|
"modules/avatar/identicon/testdata",
|
|
|
|
"modules/avatar/testdata",
|
|
|
|
"modules/git/tests",
|
|
|
|
"modules/migration/file_format_testdata",
|
|
|
|
"routers/private/tests",
|
|
|
|
"services/gitdiff/testdata",
|
|
|
|
]
|
2022-08-15 05:22:09 +08:00
|
|
|
exclude_regex = ["_test.go$", "_gen.go$"]
|
2023-05-01 06:31:16 +08:00
|
|
|
stop_on_error = true
|
2024-06-20 03:42:06 +08:00
|
|
|
|
|
|
|
[log]
|
|
|
|
main_only = true
|