From a80c95e1cf736287122f01093b51c19e323e6fd5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Mar 2019 12:26:09 -0400 Subject: [PATCH] version test is only windows --- appveyor.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index a4b3b876..0f2a4ce2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -90,6 +90,14 @@ build_script: - cmd: 7z a ./dist-cli/bwdc-windows-%PACKAGE_VERSION%.zip ./dist-cli/windows/bwdc.exe ./keytar/windows/keytar.node - cmd: 7z a ./dist-cli/bwdc-macos-%PACKAGE_VERSION%.zip ./dist-cli/macos/bwdc ./keytar/macos/keytar.node - cmd: 7z a ./dist-cli/bwdc-linux-%PACKAGE_VERSION%.zip ./dist-cli/linux/bwdc ./keytar/linux/keytar.node +- ps: | + if($isWindows) { + Expand-Archive -Path "./dist-cli/bwdc-windows-${env:PACKAGE_VERSION}.zip" -DestinationPath "./test/windows" + $testVersion = Invoke-Expression '& ./test/windows/bwdc.exe -v' + if($testVersion -ne $env:PACKAGE_VERSION) { + Throw "Version test failed." + } + } - ps: | if($isWindows) { checksum -f="./dist-cli/bwdc-windows-${env:PACKAGE_VERSION}.zip" ` @@ -114,22 +122,6 @@ 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") {