Skip to content

Commit

Permalink
AppVeyor: Take screenshots of configuration tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed May 8, 2021
1 parent a187542 commit c23e026
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions utils/appveyor/after_build.sh
Expand Up @@ -72,7 +72,7 @@ export COPYQ_TESTS_RERUN_FAILED=1
"$Executable" --info
"$Executable" tests

# Take a screenshot of the app.
# Take screenshots of the app.
"$Executable" &
"$Executable" showAt 0 0 9999 9999

Expand All @@ -95,14 +95,24 @@ export COPYQ_TESTS_RERUN_FAILED=1
.button Close cmd data

"$Executable" sleep 1000
"$Executable" screenshot > screenshot.png

screenshot() {
"$Executable" screenshot > screenshot.png
appveyor PushArtifact screenshot.png -DeploymentName "$1"
}

screenshot "Screenshot - App"

"$Executable" keys "Ctrl+P" "focus:ConfigurationManager"
for n in $(seq 9); do
screenshot "Screenshot - Configuration Tab $n"
"$Executable" "Down" "focus:ConfigurationManager"
done

"$Executable" exit
wait

export PATH=$OldPath

appveyor PushArtifact screenshot.png -DeploymentName "App Screenshot"

choco install -y InnoSetup
cmd " /c C:/ProgramData/chocolatey/bin/ISCC.exe /O$APPVEYOR_BUILD_FOLDER /DAppVersion=$APP_VERSION /DRoot=$Destination /DSource=$Source $Source/Shared/copyq.iss"

0 comments on commit c23e026

Please sign in to comment.