Build script fixes for running tests on VS2017 machine(s).
This commit is contained in:
Родитель
ac517f937b
Коммит
b366a08c8d
|
@ -152,7 +152,7 @@ namespace Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Models
|
|||
this.Fields.Add(c.Field);
|
||||
}
|
||||
|
||||
if (rule.Actions != null && rule.Actions.Count > 0)
|
||||
if (rule.Actions != null && rule.Actions.Count >= 0)
|
||||
{
|
||||
this.Actions = rule.Actions;
|
||||
}
|
||||
|
|
|
@ -21,10 +21,7 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
|
|||
|
||||
compile() {
|
||||
check_dependency_dotnet
|
||||
|
||||
cd $APP_HOME
|
||||
./scripts/env-vars-check
|
||||
|
||||
|
||||
header "Downloading dependencies..."
|
||||
dotnet restore
|
||||
|
||||
|
@ -37,10 +34,13 @@ run_tests() {
|
|||
|
||||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
|
||||
PROJECTS=$(dotnet sln asa-manager.sln list | grep '\.Test')
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -34,10 +34,13 @@ run_tests() {
|
|||
|
||||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
|
||||
PROJECTS=$(dotnet sln auth.sln list | grep '\.Test')
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -34,12 +34,12 @@ run_tests() {
|
|||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln config.sln list | grep '\.Test')
|
||||
header "Found projects $PROJECTS"
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
PROJ_MF=${PROJ//\\/\/}
|
||||
# Cleaning up special charcters from the array element.
|
||||
PROJ_MF=$(echo $PROJ_MF | sed 's/[^a-zA-Z\.\/]//g')
|
||||
dotnet test --configuration $CONFIGURATION $PROJ_MF
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -22,9 +22,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
|
|||
compile() {
|
||||
check_dependency_dotnet
|
||||
|
||||
cd $APP_HOME
|
||||
./scripts/env-vars-check
|
||||
|
||||
header "Downloading dependencies..."
|
||||
dotnet restore
|
||||
|
||||
|
@ -37,10 +34,13 @@ run_tests() {
|
|||
|
||||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
|
||||
PROJECTS=$(dotnet sln telemetry.sln list | grep '\.Test')
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
|
|||
compile() {
|
||||
check_dependency_dotnet
|
||||
|
||||
cd $APP_HOME
|
||||
./scripts/env-vars-check
|
||||
|
||||
header "Downloading dependencies..."
|
||||
dotnet restore
|
||||
|
||||
|
@ -35,10 +32,13 @@ run_tests() {
|
|||
|
||||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
|
||||
PROJECTS=$(dotnet sln iothub-manager.sln list | grep '\.Test')
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -22,9 +22,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
|
|||
compile() {
|
||||
check_dependency_dotnet
|
||||
|
||||
cd $APP_HOME
|
||||
./scripts/env-vars-check
|
||||
|
||||
header "Downloading dependencies..."
|
||||
dotnet restore
|
||||
|
||||
|
@ -37,10 +34,13 @@ run_tests() {
|
|||
|
||||
cd $APP_HOME
|
||||
header "Running tests..."
|
||||
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
|
||||
PROJECTS=$(dotnet sln storage-adapter.sln list | grep '\.Test')
|
||||
|
||||
for PROJ in $PROJECTS; do
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
PROJ=${PROJ//\\/\/}
|
||||
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
|
||||
echo "-- $PROJ"
|
||||
dotnet test --configuration $CONFIGURATION $PROJ
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче