forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spread.yaml
43 lines (36 loc) · 1.14 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
project: snapd
environment:
GOPATH: /gopath
PATH: /gopath/bin:/snap/bin:$PATH
backends:
linode:
key: $(echo $SPREAD_LINODE_KEY)
systems:
- ubuntu-16.04-grub
path: /gopath/src/github.com/snapcore/snapd
exclude:
- .git
prepare: |
apt purge -y snapd || true
apt update
apt build-dep -y ./
test -d /home/test || adduser --quiet --disabled-password --gecos '' test
chown test.test -R ..
sudo -i -u test /bin/sh -c "cd $PWD && DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -b -Zgzip"
apt install -y ../snapd_*.deb
restore: |
rm -f /gopath/src/github.com/snapcore/*.deb
userdel test 2>&1 || true
apt purge snapd 2>&1 || true
suites:
tests/:
summary: Full-system tests for snapd
restore-each: |
echo Resetting snapd state...
systemctl stop snapd || true
umount /var/lib/snapd/snaps/*.snap 2>&1 || true
rm -rf /snap/*
rm -rf /var/lib/snapd/*
rm -f /etc/systemd/system/snap-*.{mount,service}
rm -f /etc/systemd/system/multi-user.target.wants/snap-*.mount
systemctl start snapd