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