# Build
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -skiptests -skipnuget $(clangArg) $(stripSymbolsArg) $(officialBuildIdArg) /p:ContinuousIntegrationBuild=true
+ - script: ./build.sh $(buildConfig) $(archType) $(crossArg) -ci -skiptests -skipnuget $(clangArg) $(stripSymbolsArg) $(officialBuildIdArg)
displayName: Build product
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- - script: set __TestIntermediateDir=int&&build.cmd $(buildConfig) $(archType) -skiptests -skipbuildpackages $(officialBuildIdArg) $(ibcOptimizeArg) $(enforcePgoArg) /p:ContinuousIntegrationBuild=true
+ - script: set __TestIntermediateDir=int&&build.cmd $(buildConfig) $(archType) -ci -skiptests -skipbuildpackages $(officialBuildIdArg) $(ibcOptimizeArg) $(enforcePgoArg)
displayName: Build product
# Sign on Windows
# Build tests
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- - script: ./build-test.sh $(buildConfig) $(archType) $(crossArg) $(priorityArg) $(crossgenArg) $(clangArg) $(testhostArg)
+ - script: ./build-test.sh $(buildConfig) $(archType) $(crossArg) $(priorityArg) $(crossgenArg) $(clangArg) $(testhostArg) ci
displayName: Build tests
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- - script: build-test.cmd $(buildConfig) $(archType) $(priorityArg) $(crossgenArg) $(testhostArg)
+ - script: build-test.cmd $(buildConfig) $(archType) $(priorityArg) $(crossgenArg) $(testhostArg) ci
displayName: Build tests
${{ if eq(parameters.osGroup, 'Windows_NT') }}:
archiveType: zip
archiveFile: $(Build.SourcesDirectory)/bin/tests/$(osGroup).$(archType).$(buildConfigUpper).zip
- includeRootFolder: true
+ includeRootFolder: true
- ${{ if and(eq(parameters.publishTestArtifacts, true), ne(parameters.corefxTests, true)) }}:
- task: PublishBuildArtifacts@1
echo %__MsgPrefix%Starting Build at %TIME%
-REM Set variables used when running in an Azure DevOps task
-if defined TF_BUILD (
- set __ArcadeScriptArgs="-ci"
- set __ErrMsgPrefix=##vso[task.logissue type=error]
-)
set __ThisScriptDir="%~dp0"
if /i "%1" == "release" (set __BuildType=Release&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "checked" (set __BuildType=Checked&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+if /i "%1" == "ci" (set __ArcadeScriptArgs="-ci"&set __ErrMsgPrefix=##vso[task.logissue type=error]&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+
if /i "%1" == "skipmanaged" (set __SkipManaged=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "skipnative" (set __SkipNative=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "buildtesthostonly" (set __SkipNative=1&set __SkipManaged=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
;;
esac
-# Set variables used when running in an Azure DevOps task
-if [[ ! -z $TF_BUILD ]]; then
- __ArcadeScriptArgs="--ci"
- __ErrMsgPrefix="##vso[task.logissue type=error]"
-fi
-
__BuildType=Debug
__CodeCoverage=
__IncludeTests=INCLUDE_TESTS
__BuildType=Release
;;
+ ci|-ci)
+ __ArcadeScriptArgs="--ci"
+ __ErrMsgPrefix="##vso[task.logissue type=error]"
+ ;;
+
coverage)
__CodeCoverage=Coverage
;;
echo %__MsgPrefix%Starting Build at %TIME%
-REM Set variables used when running in an Azure DevOps task
-if defined TF_BUILD (
- set __ArcadeScriptArgs="-ci"
- set __ErrMsgPrefix=##vso[task.logissue type=error]
-)
-
set __ThisScriptFull="%~f0"
set __ThisScriptDir="%~dp0"
if /i "%1" == "-checked" (set __BuildTypeChecked=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "-release" (set __BuildTypeRelease=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+if /i "%1" == "-ci" (set __ArcadeScriptArgs="-ci"&set __ErrMsgPrefix=##vso[task.logissue type=error]&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
+
REM TODO these are deprecated remove them eventually
REM don't add more, use the - syntax instead
if /i "%1" == "all" (set __BuildAll=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
;;
esac
-# Set variables used when running in an Azure DevOps task
-if [[ ! -z $TF_BUILD ]]; then
- __ArcadeScriptArgs="--ci"
- __ErrMsgPrefix="##vso[task.logissue type=error]"
-fi
-
__BuildType=Debug
__CodeCoverage=
__IgnoreWarnings=0
__BuildType=Release
;;
+ ci|-ci)
+ __ArcadeScriptArgs="--ci"
+ __ErrMsgPrefix="##vso[task.logissue type=error]"
+ ;;
+
coverage|-coverage)
__CodeCoverage=Coverage
;;
set BUILD_TOOLS_SEMAPHORE_DIR=%TOOLRUNTIME_DIR%\%BUILDTOOLS_VERSION%
set BUILD_TOOLS_SEMAPHORE=%BUILD_TOOLS_SEMAPHORE_DIR%\init-tools.completed
-REM Set variables used when running in an Azure DevOps task
-if defined TF_BUILD (
- set __ErrMsgPrefix=##vso[task.logissue type=error]
-)
-
:: if force option is specified then clean the tool runtime and build tools package directory to force it to get recreated
if [%1]==[force] (
if exist "%TOOLRUNTIME_DIR%" rmdir /S /Q "%TOOLRUNTIME_DIR%"
__INIT_TOOLS_RESTORE_PROJECT="$__scriptpath/init-tools.msbuild"
__BUILD_TOOLS_SEMAPHORE="$__TOOLRUNTIME_DIR/$__BUILD_TOOLS_PACKAGE_VERSION/init-tools.complete"
-# Set variables used when running in an Azure DevOps task
-if [[ ! -z $TF_BUILD ]]; then
- __ErrMsgPrefix="##vso[task.logissue type=error]"
-fi
-
if [ -e "$__BUILD_TOOLS_SEMAPHORE" ]; then
echo "Tools are already initialized"
return #return instead of exit because this script is inlined in other scripts which we don't want to exit