mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-11 05:43:26 +00:00
test version script
This commit is contained in:
19
appveyor.yml
19
appveyor.yml
@@ -47,8 +47,7 @@ install:
|
|||||||
}
|
}
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows) {
|
if($isWindows) {
|
||||||
#$keytarVersion = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).dependencies.keytar
|
$keytarVersion = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).dependencies.keytar
|
||||||
$keytarVersion = "4.3.0"
|
|
||||||
$nodeModVersion = node -e "console.log(process.config.variables.node_module_version)"
|
$nodeModVersion = node -e "console.log(process.config.variables.node_module_version)"
|
||||||
$keytarTar = "keytar-v${keytarVersion}-node-v${nodeModVersion}-{0}-x64.tar"
|
$keytarTar = "keytar-v${keytarVersion}-node-v${nodeModVersion}-{0}-x64.tar"
|
||||||
$keytarTarGz = "${keytarTar}.gz"
|
$keytarTarGz = "${keytarTar}.gz"
|
||||||
@@ -115,6 +114,22 @@ build_script:
|
|||||||
Push-AppveyorArtifact .\dist-cli\bwdc-linux-sha256-${env:PACKAGE_VERSION}.txt
|
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:
|
on_finish:
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows -and $env:DEBUG_RDP -eq "true") {
|
if($isWindows -and $env:DEBUG_RDP -eq "true") {
|
||||||
|
|||||||
Reference in New Issue
Block a user