2018-11-28 02:48:13 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
set Architecture=%1
|
2018-12-04 23:23:53 +00:00
|
|
|
set Config=%2
|
2018-11-28 02:48:13 +00:00
|
|
|
|
2018-12-11 22:24:22 +00:00
|
|
|
if "%AdditionalBuildParameters%" == "$(_AdditionalBuildParameters)" (
|
|
|
|
REM Prevent the literal "$(_AdditionalBuildParameters)" to be passed to the build script
|
|
|
|
ECHO Setting AdditionalBuildParameters to empty
|
|
|
|
ECHO ##vso[task.setvariable variable=AdditionalBuildParameters]
|
2018-11-28 02:48:13 +00:00
|
|
|
) ELSE (
|
2018-12-11 22:24:22 +00:00
|
|
|
ECHO AdditionalBuildParameters is already set to: %AdditionalBuildParameters%
|
2018-12-04 23:23:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if /I "%SYSTEM_TEAMPROJECT%" == "Public" (
|
|
|
|
ECHO Public CI
|
2018-12-11 22:24:22 +00:00
|
|
|
SET SignType=test
|
2018-12-04 23:23:53 +00:00
|
|
|
) ELSE (
|
|
|
|
ECHO Not public CI
|
2018-12-11 22:24:22 +00:00
|
|
|
SET SignType=real
|
2018-12-04 23:23:53 +00:00
|
|
|
)
|
2018-12-11 22:24:22 +00:00
|
|
|
ECHO ##vso[task.setvariable variable=SignType]%SignType%
|
|
|
|
|
|
|
|
IF /I "%Architecture:~0,3%"=="ARM" (
|
|
|
|
ECHO ARM
|
|
|
|
ECHO ##vso[task.setvariable variable=TestParameter]
|
|
|
|
ECHO ##vso[task.setvariable variable=RunTests]false
|
|
|
|
|
|
|
|
ECHO ##vso[task.setvariable variable=AdditionalBuildParameters]/p:SignCoreSdk=true /p:DotNetSignType=%SignType%
|
2018-12-04 23:23:53 +00:00
|
|
|
|
2018-12-05 07:37:31 +00:00
|
|
|
) ELSE (
|
2018-12-11 22:24:22 +00:00
|
|
|
ECHO NOT ARM
|
|
|
|
ECHO ##vso[task.setvariable variable=TestParameter]-test
|
|
|
|
ECHO ##vso[task.setvariable variable=RunTests]true
|
2018-12-05 07:37:31 +00:00
|
|
|
|
2018-12-11 22:24:22 +00:00
|
|
|
ECHO ##vso[task.setvariable variable=AdditionalBuildParameters]-sign /p:SignCoreSdk=true /p:DotNetSignType=%SignType%
|
|
|
|
)
|