This repository has been archived by the owner on Jul 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jaffle.hcl
88 lines (72 loc) · 1.57 KB
/
jaffle.hcl
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
variable "watchdog_log_level" {
default = "info"
}
variable "pytest_log_level" {
default = "info"
}
kernel "py_kernel" {
pass_env = ["PATH"] # required to run sphinx-build in virtualenv
}
app "watchdog" {
class = "jaffle.app.watchdog.WatchdogApp"
kernel = "py_kernel"
logger {
level = "${var.watchdog_log_level}"
}
options {
handlers = [
{
watch_path = "jaffle"
patterns = ["*.py"]
ignore_patterns = ["*/examples/*.py"]
ignore_directories = true
throttle = 0.5
code_blocks = [
"pytest.handle_watchdog_event({event})",
]
},
{
patterns = [
"*/jaffle/_version.py",
"*/jaffle/app/*.py",
"*/docs/*.*",
]
ignore_patterns = ["*/_build/*", "*/dist/*"]
ignore_directories = true
throttle = 0.5
jobs = [
"sphinx",
"chrome_refresh",
]
},
]
}
}
app "pytest" {
class = "jaffle.app.pytest.PyTestRunnerApp"
kernel = "py_kernel"
logger {
level = "${var.pytest_log_level}"
suppress_regex = [
"^platform ",
"^cachedir:",
"^rootdir:",
"^plugins:",
]
}
options {
args = ["-s", "-v", "--color=yes"]
auto_test = [
"jaffle/tests/**/test_*.py",
]
auto_test_map {
"jaffle/**/*.py" = "jaffle/tests/unit/{}/test_{}.py"
}
}
}
job "sphinx" {
command = "sphinx-build -M html docs docs/_build"
}
job "chrome_refresh" {
command = "osascript chrome_refresh.scpt"
}