mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
test version script
This commit is contained in:
19
appveyor.yml
19
appveyor.yml
@@ -47,8 +47,7 @@ install:
|
||||
}
|
||||
- ps: |
|
||||
if($isWindows) {
|
||||
#$keytarVersion = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).dependencies.keytar
|
||||
$keytarVersion = "4.3.0"
|
||||
$keytarVersion = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).dependencies.keytar
|
||||
$nodeModVersion = node -e "console.log(process.config.variables.node_module_version)"
|
||||
$keytarTar = "keytar-v${keytarVersion}-node-v${nodeModVersion}-{0}-x64.tar"
|
||||
$keytarTarGz = "${keytarTar}.gz"
|
||||
@@ -115,6 +114,22 @@ build_script:
|
||||
Push-AppveyorArtifact .\dist-cli\bwdc-linux-sha256-${env:PACKAGE_VERSION}.txt
|
||||
}
|
||||
|
||||
test_script:
|
||||
- ps: |
|
||||
Expand-Archive -Path "./dist-cli/bwdc-windows-${env:PACKAGE_VERSION}.zip" -DestinationPath "./test/windows"
|
||||
Expand-Archive -Path "./dist-cli/bwdc-macos-${env:PACKAGE_VERSION}.zip" -DestinationPath "./test/macos"
|
||||
Expand-Archive -Path "./dist-cli/bwdc-linux-${env:PACKAGE_VERSION}.zip" -DestinationPath "./test/linux"
|
||||
$testVersion = "unset"
|
||||
if($isLinux) {
|
||||
$testVersion = Invoke-Expression '& ./test/linux/bwdc -v'
|
||||
}
|
||||
else {
|
||||
$testVersion = Invoke-Expression '& ./test/windows/bwdc.exe -v'
|
||||
}
|
||||
if($testVersion -ne $env:PACKAGE_VERSION) {
|
||||
Throw "Version test failed."
|
||||
}
|
||||
|
||||
on_finish:
|
||||
- ps: |
|
||||
if($isWindows -and $env:DEBUG_RDP -eq "true") {
|
||||
|
||||
Reference in New Issue
Block a user