-
Notifications
You must be signed in to change notification settings - Fork 441
/
task.yaml
32 lines (26 loc) · 922 Bytes
/
task.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
summary: Test linter output
environment:
SNAP/classic: classic
SNAP/classic_libc: classic-libc
SNAP/library_gnome: library-gnome
SNAP/library_ignore_missing: library-ignore-missing
SNAP/library_ignore_unused: library-ignore-unused
SNAP/library_ignored_mixed: library-ignored-mixed
SNAP/library_missing: library-missing
SNAP/library_unused: library-unused
# gnome-extension core24 is experimental
SNAPCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS: "1"
restore: |
cd "${SNAP}"
snapcraft clean
rm -f ./*.snap ./linter_output.txt
execute: |
cd "${SNAP}"
# Remove this once library-gnome works (it will probably fail
# on the diff check.
if ! snapcraft pack 2> output.txt && [ "${SNAP}" = library-gnome ]; then
exit 0
fi
test -f linter-test_0.1_*.snap
sed -n '/^Running linters/,/^Creating snap/p' < output.txt > linter_output.txt
diff -u linter_output.txt expected_linter_output.txt