From 5ef18eebda72c91a44883c0be8c3576d92f8dca2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Mar 2019 13:23:25 -0400 Subject: [PATCH] test snap before deploying --- appveyor.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index d492b7c0f4c..a2ea5d12cc1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -111,6 +111,14 @@ after_build: if($isLinux) { echo "Deploy Linux..." ./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION + + sudo snap install ./dist/snap/bw*.snap --dangerous + $testVersion = Invoke-Expression '& bw -v' + if($testVersion -ne $env:PACKAGE_VERSION) { + Throw "Version test failed." + } + sudo snap remove bw + ./scripts/snap-update.ps1 } else {