diff options
author | u <u@billy> | 2023-05-29 18:16:32 -0400 |
---|---|---|
committer | u <u@billy> | 2023-05-29 18:21:01 -0400 |
commit | 05ec0ee9aed68851c75a13e2199f6fb7828f2f8a (patch) | |
tree | a84ae6f58cb1864517f6dca06bf521001922aed0 /src | |
parent | c5999bad17c7ccda1bab698261dbb822c2c7e3ad (diff) |
endofossil testing as a service
Diffstat (limited to 'src')
-rw-r--r-- | src/fossil-test@.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service new file mode 100644 index 0000000..c1ad063 --- /dev/null +++ b/src/fossil-test@.service | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description = Test Endofossil by attempting a clone | ||
3 | |||
4 | [Service] | ||
5 | Type = oneshot | ||
6 | RuntimeDirectory = fossil-test-%i | ||
7 | WorkingDirectory = /run/fossil-test-%i | ||
8 | ExecStart = sh -xc 'mkdir .ssh' | ||
9 | ExecStart = sh -xc 'ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""' | ||
10 | ExecStart = sh -xc 'HOME=. ssh %i@localhost fossil test-http src/fossil/db' | ||
11 | ExecStart = sh -xc 'HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil' | ||
12 | |||