Merge pull request #998 from piotrpMSFT/piotrpMSFT/issue995/removeNoCache
Remove --no-cache from scripts
This commit is contained in:
commit
df42fa0747
7 changed files with 9 additions and 26 deletions
|
@ -6,7 +6,6 @@
|
|||
param(
|
||||
[string]$Configuration="Debug",
|
||||
[switch]$Offline,
|
||||
[switch]$NoCache,
|
||||
[switch]$NoPackage)
|
||||
|
||||
$ErrorActionPreference="Stop"
|
||||
|
@ -40,7 +39,7 @@ if ($Offline){
|
|||
else {
|
||||
_ "$RepoRoot\scripts\obtain\install-tools.ps1"
|
||||
|
||||
_ "$RepoRoot\scripts\build\restore-packages.ps1" @("$NoCache")
|
||||
_ "$RepoRoot\scripts\build\restore-packages.ps1"
|
||||
}
|
||||
|
||||
header "Compiling"
|
||||
|
|
|
@ -22,9 +22,6 @@ do
|
|||
"nopackage" | "--nopackage")
|
||||
export NOPACKAGE=true
|
||||
;;
|
||||
"nocache" | "--nocache")
|
||||
export NOCACHE=--No-Cache
|
||||
;;
|
||||
"--buildindocker-ubuntu")
|
||||
export BUILD_IN_DOCKER=true
|
||||
export DOCKER_OS=ubuntu
|
||||
|
|
|
@ -3,24 +3,13 @@
|
|||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
#
|
||||
|
||||
param(
|
||||
[string]$NoCache="")
|
||||
|
||||
. $PSScriptRoot\..\common\_common.ps1
|
||||
|
||||
if ($NoCache -eq "True") {
|
||||
$NoCacheArg = "--no-cache"
|
||||
info "Bypassing NuGet Cache"
|
||||
}
|
||||
else {
|
||||
$NoCacheArg = ""
|
||||
}
|
||||
|
||||
# Restore packages
|
||||
header "Restoring packages"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\src" --quiet --runtime "$Rid" "$NoCacheArg"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\test" --quiet --runtime "$Rid" "$NoCacheArg"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\tools" --quiet --runtime "$Rid" "$NoCacheArg"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\src" --quiet --runtime "$Rid"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\test" --quiet --runtime "$Rid"
|
||||
& "$DnxRoot\dnu" restore "$RepoRoot\tools" --quiet --runtime "$Rid"
|
||||
|
||||
$oldErrorAction=$ErrorActionPreference
|
||||
$ErrorActionPreference="SilentlyContinue"
|
||||
|
|
|
@ -18,9 +18,9 @@ source "$DIR/../common/_common.sh"
|
|||
|
||||
header "Restoring packages"
|
||||
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/src" --quiet "$NOCACHE"
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/test" --quiet "$NOCACHE"
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/tools" --quiet "$NOCACHE"
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/src" --quiet
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/test" --quiet
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/tools" --quiet
|
||||
set +e
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/testapp" --quiet "$NOCACHE" >/dev/null 2>&1
|
||||
$DNX_ROOT/dnu restore "$REPOROOT/testapp" --quiet >/dev/null 2>&1
|
||||
set -e
|
||||
|
|
|
@ -5,6 +5,6 @@ REM Licensed under the MIT license. See LICENSE file in the project root for ful
|
|||
|
||||
set CI_BUILD=1
|
||||
|
||||
CALL %~dp0..\build.cmd -NoCache %*
|
||||
CALL %~dp0..\build.cmd %*
|
||||
|
||||
exit /b %errorlevel%
|
||||
|
|
|
@ -41,7 +41,6 @@ export DOTNET_BUILD_CONTAINER_NAME="$container_name"
|
|||
|
||||
if [[ "$OSNAME" == "ubuntu" ]]; then
|
||||
export PACKAGE_IN_DOCKER="true"
|
||||
export NOCACHE="--no-cache"
|
||||
unset BUILD_IN_DOCKER
|
||||
|
||||
$SCRIPT_DIR/../build.sh $@
|
||||
|
|
|
@ -32,7 +32,6 @@ export CHANNEL=$RELEASE_SUFFIX
|
|||
[ -z "$DOTNET_CLI_VERSION" ] && export DOTNET_CLI_VERSION=0.1.0.0
|
||||
[ -z "$DOTNET_HOME" ] && export DOTNET_HOME=$STAGE2_DIR && export PATH=$STAGE2_DIR/bin:$PATH
|
||||
[ -z "$CONFIGURATION" ] && export CONFIGURATION=Debug
|
||||
[ -z "$NOCACHE" ] && export NOCACHE=""
|
||||
|
||||
unset COMMONSOURCE
|
||||
unset COMMONDIR
|
||||
|
|
Loading…
Reference in a new issue