-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspread.yaml
More file actions
76 lines (73 loc) · 2.69 KB
/
spread.yaml
File metadata and controls
76 lines (73 loc) · 2.69 KB
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
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Zygmunt Krynicki
project: demo
backends:
garden:
type: adhoc
allocate: |
# Spread automatically injects /snap/bin to PATH. When we are
# running from the image-garden snap then SPREAD_HOST_PATH is the
# original path before such modifications were applied. Snap
# applications cannot normally run /snap/bin/* entry-points
# successfully so re-set PATH to the original value, as provided by
# snapcraft.
if [ -n "${SPREAD_HOST_PATH-}" ]; then
PATH="${SPREAD_HOST_PATH}"
fi
export QEMU_SMP_OPTION="-smp 2"
export QEMU_MEM_OPTION="-m 768"
exec image-garden allocate "$SPREAD_SYSTEM"."${ARCH:=$(uname -m)}"
discard: |
# Spread automatically injects /snap/bin to PATH. When we are
# running from the image-garden snap then SPREAD_HOST_PATH is the
# original path before such modifications were applied. Snap
# applications cannot normally run /snap/bin/* entry-points
# successfully so re-set PATH to the original value, as provided by
# snapcraft.
if [ -n "${SPREAD_HOST_PATH-}" ]; then
PATH="${SPREAD_HOST_PATH}"
fi
image-garden discard "$SPREAD_SYSTEM_ADDRESS"
systems:
# Ubuntu systems
- ubuntu-cloud-16.04:
username: ubuntu
password: ubuntu
- ubuntu-cloud-18.04:
username: ubuntu
password: ubuntu
- ubuntu-cloud-20.04:
username: ubuntu
password: ubuntu
- ubuntu-cloud-22.04:
username: ubuntu
password: ubuntu
- ubuntu-cloud-24.04:
username: ubuntu
password: ubuntu
# Ubuntu Core systems
- ubuntu-core-16:
username: ubuntu
password: ubuntu
- ubuntu-core-18:
username: ubuntu
password: ubuntu
- ubuntu-core-20:
username: ubuntu
password: ubuntu
- ubuntu-core-22:
username: ubuntu
password: ubuntu
- ubuntu-core-24:
username: ubuntu
password: ubuntu
path: /root/checkbox
exclude:
- .git
- ".image-garden/*"
prepare: |
# Spread clobbers the PATH of the system so reload the vanilla value
. /etc/environment
suites:
tests/:
summary: Functional tests