aspnetcore/build.sh

366 строки
13 KiB
Bash
Исходник Обычный вид История

#!/usr/bin/env bash
set -euo pipefail
#
# variables
#
RESET="\033[0m"
RED="\033[0;31m"
YELLOW="\033[0;33m"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
target_os_name=''
ci=false
[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630) * Update dependencies from https://github.com/dotnet/arcade build 20200511.9 - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 * Update dependencies from https://github.com/dotnet/aspnetcore-tooling build 20200514.6 Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6 * Pre-emptively take -nobl change * Disable binlogs in CI * Fix build.sh to know about -nobl * Align build.ps1|sh with latest Arcade parameters - do not enable binary logs by default in CI builds - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs nit: document `-excludeCIBinarylog` a bit more * Do not pass unknown options into CodeCheck.ps1 * Pass `-ci -nobl` into remaining CI build jobs * Switch default TFM to `net5.0` * Update missing project templates tfms * Add more `-ci -nobl` - needed because _all_ builds in the pipeline are implicitly CI builds - default-build.yml adds `-ci` when script wasn't explicit * Default templates to net5.0 * PR feedback * Update TFMs in explicit .nuspec files * Update TFMs in test projects * Update TFMs in test C# code * Update TFMs in infrastructure files * Future-proof a check for `net5.0` or later - avoid comparisons involving `$(TargetFramework)` in .targets files - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)` * !fixup! Undo a couple of earlier fixes - remove a duplicate `$()` setting - correct the one remaining versioned `#if` define - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs * Disable binary logs in CodeCheck.ps1 * Specify `-ci -nobl` just once when using `parameters.buildArgs` * Restore `$binaryLog` default logic Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2020-05-15 03:17:02 +03:00
binary_log=false
exclude_ci_binary_log=false
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
verbosity='minimal'
run_restore=''
run_build=true
run_pack=false
run_tests=false
build_all=false
build_deps=true
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
build_repo_tasks=true
build_managed=''
build_native=''
build_nodejs=''
build_java=''
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
build_installers=''
build_projects=''
target_arch='x64'
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
configuration=''
dotnet_runtime_source_feed=''
dotnet_runtime_source_feed_key=''
if [ "$(uname)" = "Darwin" ]; then
target_os_name='osx'
else
target_os_name='linux'
fi
msbuild_args=()
#
# Functions
#
__usage() {
echo "Usage: $(basename "${BASH_SOURCE[0]}") [options] [[--] <Arguments>...]
Arguments:
<Arguments>... Arguments passed to the command. Variable number of arguments allowed.
Options:
--configuration|-c The build configuration (Debug, Release). Default=Debug
--arch The CPU architecture to build for (x64, arm, arm64). Default=$target_arch
--os-name The base runtime identifier to build for (linux, osx, linux-musl). Default=$target_os_name
--[no-]restore Run restore.
--[no-]build Compile projects. (Implies --no-restore)
--[no-]pack Produce packages.
--[no-]test Run tests.
--projects A list of projects to build. (Must be an absolute path.)
Globbing patterns are supported, such as \"$(pwd)/**/*.csproj\".
--no-build-deps Do not build project-to-project references and only build the specified project.
--no-build-repo-tasks Suppress building RepoTasks.
--all Build all project types.
--[no-]build-native Build native projects (C, C++). Ignored in most cases i.e. with `dotnet msbuild`.
--[no-]build-managed Build managed projects (C#, F#, VB).
--[no-]build-nodejs Build NodeJS projects (TypeScript, JS).
--[no-]build-java Build Java projects.
--[no-]build-installers Build Java projects.
--ci Apply CI specific settings and environment variables.
--binarylog|-bl Use a binary logger
[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630) * Update dependencies from https://github.com/dotnet/arcade build 20200511.9 - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 * Update dependencies from https://github.com/dotnet/aspnetcore-tooling build 20200514.6 Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6 * Pre-emptively take -nobl change * Disable binlogs in CI * Fix build.sh to know about -nobl * Align build.ps1|sh with latest Arcade parameters - do not enable binary logs by default in CI builds - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs nit: document `-excludeCIBinarylog` a bit more * Do not pass unknown options into CodeCheck.ps1 * Pass `-ci -nobl` into remaining CI build jobs * Switch default TFM to `net5.0` * Update missing project templates tfms * Add more `-ci -nobl` - needed because _all_ builds in the pipeline are implicitly CI builds - default-build.yml adds `-ci` when script wasn't explicit * Default templates to net5.0 * PR feedback * Update TFMs in explicit .nuspec files * Update TFMs in test projects * Update TFMs in test C# code * Update TFMs in infrastructure files * Future-proof a check for `net5.0` or later - avoid comparisons involving `$(TargetFramework)` in .targets files - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)` * !fixup! Undo a couple of earlier fixes - remove a duplicate `$()` setting - correct the one remaining versioned `#if` define - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs * Disable binary logs in CodeCheck.ps1 * Specify `-ci -nobl` just once when using `parameters.buildArgs` * Restore `$binaryLog` default logic Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2020-05-15 03:17:02 +03:00
--excludeCIBinarylog Don't output binary log by default in CI builds (short: -nobl).
--verbosity|-v MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
--dotnet-runtime-source-feed Additional feed that can be used when downloading .NET runtimes
--dotnet-runtime-source-feed-key Key for feed that can be used when downloading .NET runtimes
Description:
This build script installs required tools and runs an MSBuild command on this repository
This script can be used to invoke various targets, such as targets to produce packages
build projects, run tests, and generate code.
"
if [[ "${1:-}" != '--no-exit' ]]; then
exit 2
fi
}
__error() {
echo -e "${RED}error: $*${RESET}" 1>&2
}
__warn() {
echo -e "${YELLOW}warning: $*${RESET}"
}
#
# main
#
while [[ $# -gt 0 ]]; do
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
case "$opt" in
-\?|-h|-help)
__usage --no-exit
exit 0
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-configuration|-c)
shift
configuration="${1:-}"
[ -z "$configuration" ] && __error "Missing value for parameter --configuration" && __usage
;;
-arch)
shift
target_arch="${1:-}"
[ -z "$target_arch" ] && __error "Missing value for parameter --arch" && __usage
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-os-name|-osname)
shift
target_os_name="${1:-}"
[ -z "$target_os_name" ] && __error "Missing value for parameter --os-name" && __usage
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-restore|-r)
run_restore=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-restore|-norestore)
run_restore=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build|-b)
run_build=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build|-nobuild)
run_build=false
# --no-build implies --no-restore
[ -z "$run_restore" ] && run_restore=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build-deps|-nobuilddeps)
build_deps=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-pack)
run_pack=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-pack|-nopack)
run_pack=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-test|-t)
run_tests=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-test|-notest)
run_tests=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-projects)
shift
build_projects="${1:-}"
[ -z "$build_projects" ] && __error "Missing value for parameter --projects" && __usage
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-all)
build_all=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build-managed|-buildmanaged)
build_managed=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build-managed|-nobuildmanaged)
build_managed=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build-nodejs|-buildnodejs)
build_nodejs=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build-nodejs|-nobuildnodejs)
build_nodejs=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build-java|-buildjava)
build_java=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build-java|-nobuildjava)
build_java=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build-native|-buildnative)
build_native=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-no-build-native|-nobuildnative)
build_native=false
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-build-installers|-buildinstallers)
build_installers=true
;;
-no-build-installers|-nobuildinstallers)
build_installers=false
;;
-no-build-repo-tasks|-nobuildrepotasks)
build_repo_tasks=false
;;
-arch)
shift
target_arch="${1:-}"
[ -z "$target_arch" ] && __error "Missing value for parameter --arch" && __usage
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-ci)
ci=true
;;
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
-binarylog|-bl)
[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630) * Update dependencies from https://github.com/dotnet/arcade build 20200511.9 - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 * Update dependencies from https://github.com/dotnet/aspnetcore-tooling build 20200514.6 Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6 * Pre-emptively take -nobl change * Disable binlogs in CI * Fix build.sh to know about -nobl * Align build.ps1|sh with latest Arcade parameters - do not enable binary logs by default in CI builds - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs nit: document `-excludeCIBinarylog` a bit more * Do not pass unknown options into CodeCheck.ps1 * Pass `-ci -nobl` into remaining CI build jobs * Switch default TFM to `net5.0` * Update missing project templates tfms * Add more `-ci -nobl` - needed because _all_ builds in the pipeline are implicitly CI builds - default-build.yml adds `-ci` when script wasn't explicit * Default templates to net5.0 * PR feedback * Update TFMs in explicit .nuspec files * Update TFMs in test projects * Update TFMs in test C# code * Update TFMs in infrastructure files * Future-proof a check for `net5.0` or later - avoid comparisons involving `$(TargetFramework)` in .targets files - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)` * !fixup! Undo a couple of earlier fixes - remove a duplicate `$()` setting - correct the one remaining versioned `#if` define - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs * Disable binary logs in CodeCheck.ps1 * Specify `-ci -nobl` just once when using `parameters.buildArgs` * Restore `$binaryLog` default logic Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2020-05-15 03:17:02 +03:00
binary_log=true
;;
-excludeCIBinarylog|-nobl)
exclude_ci_binary_log=true
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
;;
-dotnet-runtime-source-feed|-dotnetruntimesourcefeed)
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
shift
[ -z "${1:-}" ] && __error "Missing value for parameter --dotnet-runtime-source-feed" && __usage
dotnet_runtime_source_feed="${1:-}"
;;
-dotnet-runtime-source-feed-key|-dotnetruntimesourcefeedkey)
shift
[ -z "${1:-}" ] && __error "Missing value for parameter --dotnet-runtime-source-feed-key" && __usage
dotnet_runtime_source_feed_key="${1:-}"
;;
*)
msbuild_args[${#msbuild_args[*]}]="$1"
;;
esac
shift
done
if [ "$build_all" = true ]; then
msbuild_args[${#msbuild_args[*]}]="-p:BuildAllProjects=true"
fi
if [ ! -z "$build_projects" ]; then
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
msbuild_args[${#msbuild_args[*]}]="-p:ProjectToBuild=$build_projects"
elif [ "$build_all" != true ] && [ -z "$build_managed$build_nodejs$build_java$build_native$build_installers" ]; then
# This goal of this is to pick a sensible default for `build.sh` with zero arguments.
# We believe the most common thing our contributors will work on is C#, so if no other build group was picked, build the C# projects.
__warn "No default group of projects was specified, so building the 'managed' and its dependent subset of projects. Run ``build.sh --help`` for more details."
build_managed=true
fi
if [ "$build_deps" = false ]; then
msbuild_args[${#msbuild_args[*]}]="-p:BuildProjectReferences=false"
fi
Use stages pipeline (#13040) - #11924 - change ci.yml to use stages and post-build.yml - add use of publish-build-assets.yml and post-build.yml - create manifests and push to artifacts in last build step of each job - pass more MSBuild properties into those builds - use Arcade to publish installers - use distinct `$(AssetManifestFileName)` values per job - set global property to override what's hard-coded in Publish.proj - change codesign-xplat.yml to use empty.proj and normal Arcade signing and publication process - remove XPlatPackageSigner.proj - change default-build.yml to use job.yml - remove unused parameters e.g. `matrix`, `poolName`, `variables` - use `enableMicrobuild` and `enablePublishTestResults` to eliminate duplicate build steps - add .dll's and .exe's as files to sign w/ Microsoft400 - add signcheck exclusions - remove custom manifest generation i.e. the `GenerateBuildAssetManifest` target and related artifacts - update docker infrastructure to use same paths in and out of the container - avoids problems adding to artifacts from within the builds - correct typo in build.sh - use `$env:DOTNET_INSTALL_DIR` in `DotNetCommands` - relax expectations that an arch-specific folder exists under (say) `$env:DOTNET_HOME` - avoids need to define `$env:DOTNET_HOME` in all jobs on CI - update dependencies from dotnet/arcade build '20190908.2' - upgrade to eg. Arcade SDK '1.0.0-beta.19458.2' package version - pick up dotnet/arcade@dd593acc8b08 fix - enable use of `%(PublishFlatContainer)` metadata and correct signing validation issues - use `$(DotNetFinalVersionKind)` in preparation for servicing builds - set `$(IsStableBuild)` for use in Arcade infrastructure - disable signing validation for now (see #13864) nits: - upload logs in first artifact - remove attempts to package non-existent VSIX - follow-up to 29cf7ecb80b1 - respect verbosity setting in build.sh - add more information to Artifacts.md - enable test signing in internal PRs
2019-09-11 06:43:24 +03:00
if [ "$build_managed" = true ] || ([ "$build_all" = true ] && [ "$build_managed" != false ]); then
if [ -z "$build_nodejs" ]; then
if [ -x "$(command -v node)" ]; then
__warn "Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected on PATH."
else
__warn "Building of NodeJS projects is disabled since node is not detected on Path and no BuildNodeJs or NoBuildNodeJs setting is set explicitly."
build_nodejs=false
fi
fi
if [ "$build_nodejs" = false ]; then
__warn "Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date."
fi
fi
# Only set these MSBuild properties if they were explicitly set by build parameters.
[ ! -z "$build_java" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildJava=$build_java"
[ ! -z "$build_native" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildNative=$build_native"
[ ! -z "$build_nodejs" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildNodeJS=$build_nodejs"
[ ! -z "$build_managed" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildManaged=$build_managed"
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
[ ! -z "$build_installers" ] && msbuild_args[${#msbuild_args[*]}]="-p:BuildInstallers=$build_installers"
# Run restore by default unless --no-restore or --no-build was specified.
[ -z "$run_restore" ] && run_restore=true
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
msbuild_args[${#msbuild_args[*]}]="-p:Restore=$run_restore"
msbuild_args[${#msbuild_args[*]}]="-p:Build=$run_build"
if [ "$run_build" = false ]; then
msbuild_args[${#msbuild_args[*]}]="-p:NoBuild=true"
fi
msbuild_args[${#msbuild_args[*]}]="-p:Pack=$run_pack"
msbuild_args[${#msbuild_args[*]}]="-p:Test=$run_tests"
msbuild_args[${#msbuild_args[*]}]="-p:TargetArchitecture=$target_arch"
msbuild_args[${#msbuild_args[*]}]="-p:TargetOsName=$target_os_name"
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
if [ -z "$configuration" ]; then
if [ "$ci" = true ]; then
configuration='Release'
else
configuration='Debug'
fi
fi
msbuild_args[${#msbuild_args[*]}]="-p:Configuration=$configuration"
Use stages pipeline (#13040) - #11924 - change ci.yml to use stages and post-build.yml - add use of publish-build-assets.yml and post-build.yml - create manifests and push to artifacts in last build step of each job - pass more MSBuild properties into those builds - use Arcade to publish installers - use distinct `$(AssetManifestFileName)` values per job - set global property to override what's hard-coded in Publish.proj - change codesign-xplat.yml to use empty.proj and normal Arcade signing and publication process - remove XPlatPackageSigner.proj - change default-build.yml to use job.yml - remove unused parameters e.g. `matrix`, `poolName`, `variables` - use `enableMicrobuild` and `enablePublishTestResults` to eliminate duplicate build steps - add .dll's and .exe's as files to sign w/ Microsoft400 - add signcheck exclusions - remove custom manifest generation i.e. the `GenerateBuildAssetManifest` target and related artifacts - update docker infrastructure to use same paths in and out of the container - avoids problems adding to artifacts from within the builds - correct typo in build.sh - use `$env:DOTNET_INSTALL_DIR` in `DotNetCommands` - relax expectations that an arch-specific folder exists under (say) `$env:DOTNET_HOME` - avoids need to define `$env:DOTNET_HOME` in all jobs on CI - update dependencies from dotnet/arcade build '20190908.2' - upgrade to eg. Arcade SDK '1.0.0-beta.19458.2' package version - pick up dotnet/arcade@dd593acc8b08 fix - enable use of `%(PublishFlatContainer)` metadata and correct signing validation issues - use `$(DotNetFinalVersionKind)` in preparation for servicing builds - set `$(IsStableBuild)` for use in Arcade infrastructure - disable signing validation for now (see #13864) nits: - upload logs in first artifact - remove attempts to package non-existent VSIX - follow-up to 29cf7ecb80b1 - respect verbosity setting in build.sh - add more information to Artifacts.md - enable test signing in internal PRs
2019-09-11 06:43:24 +03:00
# Set verbosity
echo "Setting msbuild verbosity to $verbosity"
msbuild_args[${#msbuild_args[*]}]="-verbosity:$verbosity"
# Set up additional runtime args
toolset_build_args=()
if [ ! -z "$dotnet_runtime_source_feed$dotnet_runtime_source_feed_key" ]; then
runtimeFeedArg="/p:DotNetRuntimeSourceFeed=$dotnet_runtime_source_feed"
runtimeFeedKeyArg="/p:DotNetRuntimeSourceFeedKey=$dotnet_runtime_source_feed_key"
msbuild_args[${#msbuild_args[*]}]=$runtimeFeedArg
msbuild_args[${#msbuild_args[*]}]=$runtimeFeedKeyArg
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedArg
toolset_build_args[${#toolset_build_args[*]}]=$runtimeFeedKeyArg
fi
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
# Initialize global variables need to be set before the import of Arcade is imported
restore=$run_restore
# Disable node reuse - Workaround perpetual issues in node reuse and custom task assemblies
nodeReuse=false
export MSBUILDDISABLENODEREUSE=1
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
# Our build often has warnings that we can't fix
# Fixing this is tracked by https://github.com/dotnet/aspnetcore-internal/issues/601
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
warn_as_error=false
[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630) * Update dependencies from https://github.com/dotnet/arcade build 20200511.9 - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9 * Update dependencies from https://github.com/dotnet/aspnetcore-tooling build 20200514.6 Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6 * Pre-emptively take -nobl change * Disable binlogs in CI * Fix build.sh to know about -nobl * Align build.ps1|sh with latest Arcade parameters - do not enable binary logs by default in CI builds - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs nit: document `-excludeCIBinarylog` a bit more * Do not pass unknown options into CodeCheck.ps1 * Pass `-ci -nobl` into remaining CI build jobs * Switch default TFM to `net5.0` * Update missing project templates tfms * Add more `-ci -nobl` - needed because _all_ builds in the pipeline are implicitly CI builds - default-build.yml adds `-ci` when script wasn't explicit * Default templates to net5.0 * PR feedback * Update TFMs in explicit .nuspec files * Update TFMs in test projects * Update TFMs in test C# code * Update TFMs in infrastructure files * Future-proof a check for `net5.0` or later - avoid comparisons involving `$(TargetFramework)` in .targets files - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)` * !fixup! Undo a couple of earlier fixes - remove a duplicate `$()` setting - correct the one remaining versioned `#if` define - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs * Disable binary logs in CodeCheck.ps1 * Specify `-ci -nobl` just once when using `parameters.buildArgs` * Restore `$binaryLog` default logic Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2020-05-15 03:17:02 +03:00
# Ensure passing neither --bl nor --nobl on CI avoids errors in tools.sh. This is needed because we set both variables
# to false by default i.e. they always exist. (We currently avoid binary logs but that is made visible in the YAML.)
if [[ "$ci" == true && "$exclude_ci_binary_log" == false ]]; then
binary_log=true
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
fi
# increase file descriptor limit on macOS
if [ "$(uname)" = "Darwin" ]; then
ulimit -n 10000
fi
# Import Arcade
. "$DIR/eng/common/tools.sh"
# Capture MSBuild crash logs
export MSBUILDDEBUGPATH="$log_dir"
# Import custom tools configuration, if present in the repo.
configure_toolset_script="$eng_root/configure-toolset.sh"
if [[ -a "$configure_toolset_script" ]]; then
. "$configure_toolset_script"
fi
# Set this global property so Arcade will always initialize the toolset. The error message you get when you build on a clean machine
# with -norestore is not obvious about what to do to fix it. As initialization takes very little time, we think always initializing
# the toolset is a better default behavior.
_tmp_restore=$restore
restore=true
InitializeToolset
restore=$_tmp_restore=
if [ "$build_repo_tasks" = true ]; then
MSBuild $_InitializeToolset \
-p:RepoRoot="$repo_root" \
-p:Projects="$DIR/eng/tools/RepoTasks/RepoTasks.csproj" \
-p:Configuration=Release \
-p:Restore=$run_restore \
-p:Build=true \
-clp:NoSummary \
${toolset_build_args[@]+"${toolset_build_args[@]}"}
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
fi
# This incantation avoids unbound variable issues if msbuild_args is empty
# https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u
Replace KoreBuild with Arcade (#11122) * Replace usages of $(CI) with $(ContinuousIntegrationBuild) * Move RepoTasks to eng/tools/ * Remove dead code * Update build.sh/ps1 to invoke Arcade instead of KoreBuild * build/repo.props => eng/Build.props * build/CodeSign.{props,targets} => eng/Signing.props * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets * Remove AddAllProjectRefsToSolution.ps1 * Put selenium process tracking into artifacts/tmp/ * build/docker => eng/docker * Move content from korebuild.json to global.json * Remove cibuild.{sh,cmd} and update ci.yml * Ensure vswhere detects BuildTools installations * Remove sign check exclusions (Arcade does not support) * list VS required components in global.json * Update CodeCheck.ps1 * Update arcade (#11143) * Fixups to broken build * capture test results in xunit form * attempt to fix code check * restore before linux build * remove duplicate signinfos * More build fixes * exclude node_modules from unique project check * fixup signing props * More build fixes * Remove unused NoWarns * Skip building site extension * Suppress xunit color in console output * Install x86 runtime * Run KillProcesses.ps1 at end of build on CI * activate env vars in codecheck.ps1 * Fix signing and generate build manifests * Fixup code check and linux installers build * Remove custom restore targets * Import flaky test props * Restore original manifest generation code and set warnAsErrors=false * Alwasy restore the toolset * More attempts at build fixes * run restore before building deb/rpm packages * pre-install Yarn.MSBuild * Remove WIX workaround * Attempt to fix RPM installers and x86 build * Fix helix tests, java auto-detection, and code gen steps * Globally disable MSBuild node resuse and capture MSbuild crash logs * Cleanup build invocation for installers * Set max time on xunit tests to 15 min * Update helix-test.yml * Fix Hosting tests * Fix TestHost * Fix Negotiate.Test * Fix Mvc tests * Capture results * Fix Hosting tests * Fix Kestrel tests * Fix ServerComparison tests * Fix DefaultBuilder functional tests * Skip template tests Need to run pack before running tests on mac/linux now * Fix Identity test * Fix ServerComparison tests * Verify nginx installation on ubuntu * Verify nginx installation? * Try adding to path * Try symlink * Sudo? * Woot it works * Disable timeout Template tests require more than 15 mins * list env vars * Use correct dotnet_home * Prepent path instead * Fix npmproj tests * Fix CORS tests * Debug signalr tests * Debug signalr * Capture bin * Try building templates sequentially * Debug signalr * Cleanup * Disable signalr npm tests * Debug template test * Try to fix templates again and make steps more reliable * Cleanup * Feedback
2019-06-19 20:03:38 +03:00
MSBuild $_InitializeToolset -p:RepoRoot="$repo_root" ${msbuild_args[@]+"${msbuild_args[@]}"}
ExitWithExitCode 0