-
Notifications
You must be signed in to change notification settings - Fork 1
/
spread.yaml
50 lines (45 loc) · 1.51 KB
/
spread.yaml
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
project: snapcraft
environment:
LANG: "$(echo ${LANG:-C.UTF-8})"
LANGUAGE: "$(echo ${LANGUAGE:-en})"
SNAPCRAFT_FROM_SNAP: "1"
backends:
lxd:
systems: [ubuntu-16.04]
linode:
key: "$(HOST: echo $SPREAD_LINODE_KEY)"
systems:
- ubuntu-16.04-64:
kernel: GRUB 2
workers: 3
suites:
spread_tests/:
summary: tests of the snapcraft snap
prepare: |
# apt update is hanging on security.ubuntu.com with IPv6, prefer IPv4 over IPv6
cat <<EOF > gai.conf
precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 100
EOF
if ! mv gai.conf /etc/gai.conf; then
# not writable, disable ipv6 through sysctl
sysctl -w net.ipv6.conf.all.disable_ipv6=1
rm -f gai.conf
fi
apt update
apt install --yes gcc g++ make python3-dev python3-venv libffi-dev libsodium-dev libapt-pkg-dev libarchive13 squashfs-tools xdelta3 bzr git mercurial subversion
# Only required for the lxd backend.
apt install --yes squashfuse
mkdir -p /snapcraft/venv
python3 -m venv /snapcraft/venv
# XXX the activate script has an unbound variable.
sed -i '1s/^/set +u\n/' /snapcraft/venv/bin/activate
source /snapcraft/venv/bin/activate
pip install --upgrade pip
pip install -r /snapcraft/requirements.txt -r /snapcraft/requirements-devel.txt
apt install --yes snapd
snap install snapcraft --classic --edge
path: /snapcraft/