From 2723e2a7b86bcbff9051fd2aced07dd807b4bcb7 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Fri, 15 Jan 2016 00:27:59 -0800 Subject: [PATCH] faster test packaging in build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 11963146d..fb050d5d7 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ outputFolderMono='./_output_mono' outputFolderOsx='./_output_osx' outputFolderOsxApp='./_output_osx_app' testPackageFolder='./_tests/' -testSearchPattern='*.Test/bin/x86/Release/*' +testSearchPattern='*.Test/bin/x86/Release' sourceFolder='./src' updateFolder=$outputFolder/NzbDrone.Update updateFolderMono=$outputFolderMono/NzbDrone.Update @@ -199,7 +199,7 @@ PackageTests() rm -rf $testPackageFolder mkdir $testPackageFolder - find . -maxdepth 6 -path $testSearchPattern -exec cp -r "{}" $testPackageFolder \; + find $sourceFolder -path $testSearchPattern -exec cp -r -u -T "{}" $testPackageFolder \; if [ $runtime = "dotnet" ] ; then $sourceFolder/.nuget/NuGet.exe install NUnit.Runners -Version 2.6.1 -Output $testPackageFolder