Skip to content

Commit

Permalink
Parameterize windows packaging test script (elastic#58980)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira authored Jul 8, 2020
1 parent 54e0c95 commit 09867ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .ci/os.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
param($GradleTasks='destructiveDistroTest')

If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Expand Down Expand Up @@ -25,7 +27,6 @@ Remove-Item -Recurse -Force \tmp -ErrorAction Ignore
New-Item -ItemType directory -Path \tmp

$ErrorActionPreference="Continue"
# TODO: remove the task exclusions once dependencies are set correctly and these don't run for Windows or buldiung the deb on windows is fixed
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain destructiveDistroTest
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain $GradleTasks

exit $LastExitCode

0 comments on commit 09867ec

Please sign in to comment.