Merge pull request #1256 from eerhardt/FixCacheOnUnix

Fix the package cache on CI on Unix.
This commit is contained in:
Eric Erhardt 2016-02-08 20:47:38 -06:00
commit 7b40b04e2f

View file

@ -4,7 +4,15 @@
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
export NUGET_PACKAGES=~/.nuget/packages
if [ ! -z "$CI_BUILD" ]; then
# On CI, $HOME is redirected under the repo, which gets deleted after every build.
# So make $NUGET_PACKAGES outside of the repo.
NUGET_PACKAGES=$REPOROOT/../.nuget/packages
else
NUGET_PACKAGES=~/.nuget/packages
fi
export NUGET_PACKAGES
export DOTNET_PACKAGES=$NUGET_PACKAGES
export DNX_PACKAGES=$NUGET_PACKAGES