Skip to content

Commit

Permalink
Merge pull request #6003 from karajas/allowBootstrapConfig
Browse files Browse the repository at this point in the history
Allow bootstrap directory and nuget packages to be configured
  • Loading branch information
Livar authored Mar 16, 2017
2 parents 5476ad9 + 54df339 commit f8c3c4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion run-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ if($Help)

$env:CONFIGURATION = $Configuration;
$RepoRoot = "$PSScriptRoot"
$env:NUGET_PACKAGES = "$RepoRoot\.nuget\packages"
if(!$env:NUGET_PACKAGES){
$env:NUGET_PACKAGES = "$RepoRoot\.nuget\packages"
}

if($NoPackage)
{
Expand Down Expand Up @@ -71,6 +73,10 @@ $env:VSTEST_TRACE_BUILD=1

# set the base tools directory
$toolsLocalPath = Join-Path $PSScriptRoot "build_tools"
if($env:BOOTSTRAP_INSTALL_DIR)
{
$toolsLocalPath = $env:BOOTSTRAP_INSTALL_DIR
}
$bootStrapperPath = Join-Path $toolsLocalPath "bootstrap.ps1"
# if the boot-strapper script doesn't exist then download it
if ((Test-Path $bootStrapperPath) -eq 0)
Expand Down
5 changes: 4 additions & 1 deletion run-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ LINUX_PORTABLE_INSTALL_ARGS=
CUSTOM_BUILD_ARGS=

# Set nuget package cache under the repo
export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"

args=( "$@" )

Expand Down Expand Up @@ -147,6 +147,9 @@ export VSTEST_TRACE_BUILD=1

DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
toolsLocalPath="$REPOROOT/build_tools"
if [ ! -z $BOOTSTRAP_INSTALL_DIR]; then
toolsLocalPath = $BOOTSTRAP_INSTALL_DIR
fi
bootStrapperPath="$toolsLocalPath/bootstrap.sh"
dotnetInstallPath="$toolsLocalPath/dotnet-install.sh"
if [ ! -f $bootStrapperPath ]; then
Expand Down

0 comments on commit f8c3c4a

Please sign in to comment.