test snap before deploying

This commit is contained in:
Kyle Spearrin 2019-03-20 13:23:25 -04:00
parent b4ab4e0b86
commit 5ef18eebda
1 changed files with 8 additions and 0 deletions

View File

@ -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 {