Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion testSdkOnLinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ubuntu1404="ubuntu.14.04-x64"
nugetOrgSource="https://api.nuget.org/v3/index.json"
localNugetFeed="./tools/LocalNugetFeed"
sdkdir=$rootdir/src/SDKs
azStackDir=$rootdir/src/AzureStack

restoreBuildCR() {
echo "Restore ClientRuntime for $ubuntu1404"
Expand All @@ -27,6 +28,30 @@ restoreBuildCR() {

}

restoreBuildAzStack() {
for dirPath in $azStackDir/*
do
dirName=`basename $dirPath`
if [ -d $azStackDir/$dirName ]; then
childDir=($azStackDir/$dirName)
printf "$azStackDir/$dirName\n"
if [ -f $childDir/*.sln ]; then
slnFile=($childDir/*.sln)
printf "Restoring :::::: $slnFile for $ubuntu1404\n"
dotnet restore $slnFile -r $ubuntu1404
fi
if [ -d $childDir/*.Tests ]; then
testProj=($childDir/*.Tests/*.csproj)
if [ -f $testProj ]; then
printf "Test ------ $testProj for framework $netcore11\n"
dotnet build $testProj -f $netcore11
dotnet test $testProj -f $netcore11
fi
fi
fi
done
}

restoreBuildRepo() {
#printf "$sdkdir\n"
for folder in $sdkdir/*
Expand Down Expand Up @@ -143,7 +168,7 @@ restoreBuildCR
restoreBuildRepo
restoreBuildCog
restoreBuildKV

restoreBuildAzStack

: '
#echo "base: "$base
Expand Down