-
Notifications
You must be signed in to change notification settings - Fork 60
/
PackageGingerEXE.ps1
32 lines (26 loc) · 1.48 KB
/
PackageGingerEXE.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Write-Host "-------------------------------------------------------------"
Write-Host "- Package Ginger EXE "
Write-Host "-------------------------------------------------------------"
cd D:\a\1\s\Ginger\Ginger\bin\Release
dir
# delete app.publish since it is ~30mb which are not needed so save space and time for download
Remove-Item D:\a\1\s\Ginger\Ginger\bin\Release\app.publish\Ginger.exe
#zip release folder
Compress-Archive -Path 'D:\a\1\s\Ginger\Ginger\bin\Release' -DestinationPath 'D:\a\1\a\GingerEXE'
Write-Host "-------------------------------------------------------------"
Write-Host "- Run CLI tests "
Write-Host "-------------------------------------------------------------"
cd D:\a\1\s\Ginger\Ginger\bin\Release
$p = Start-Process Ginger.exe help
$p.HasExited
$p.ExitCode
Write-Host "-------------------------------------------------------------"
Write-Host "- Package Ginger.log "
Write-Host "-------------------------------------------------------------"
# Compress-Archive -Path C:\Users\VssAdministrator\AppData\Roaming\amdocs\Ginger\WorkingFolder\Logs\Ginger_Log.txt -DestinationPath 'D:\a\1\a\GingerLog'
Write-Host "-------------------------------------------------------------"
Write-Host "- Artifacts List -"
Write-Host "-------------------------------------------------------------"
cd D:\a\1\a\
dir
exit $exitcode