aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2022-08-16 09:01:37 +0100
committerJake Hunsaker <jhunsake@redhat.com>2022-08-17 11:50:47 -0400
commit6468eed722a7ec9ee5947b2d92ea1a887134a2d8 (patch)
treedba03a6923a98f398338bd5edd9ce6c3d1f77020 /.cirrus.yml
parent7a98f67b0b39408fef83729d19025fa238d60e75 (diff)
downloadsos-6468eed722a7ec9ee5947b2d92ea1a887134a2d8.tar.gz
[testing] Test building of snap
Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 8c48aed7..8e9de39d 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -81,6 +81,25 @@ rpm_build_task:
rpmbuild -bs sos.spec
rpmbuild -bb sos.spec
+# Make sure a user can manually build a snap from the checkout
+snap_build_task:
+ alias: "snap_build"
+ name: "snap Build From Checkout"
+ gce_instance:
+ image_project: "${UBUNTU_PROJECT}"
+ image_name: "${UBUNTU_PRIOR_IMAGE_NAME}"
+ type: e2-medium
+ setup_script: |
+ apt update
+ apt -y install snapd
+ systemctl start snapd
+ sed -i 's/adopt-info.*/version: test/g' snap/snapcraft.yaml
+ snap install snapcraft --classic
+ main_script: |
+ snapcraft --destructive-mode
+ snap_artifacts:
+ path: "*.snap"
+
# Run the stage one (no mocking) tests across all distros on GCP
report_stageone_task:
alias: "stageone_report"