1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

test snap before deploying

This commit is contained in:
Kyle Spearrin 2019-03-20 13:23:25 -04:00
parent b4ab4e0b86
commit 5ef18eebda

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 {