File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ dotnet: 2.1.400
5
5
dist : trusty
6
6
7
7
env :
8
- - NAME="azure-powershell-core" CONFIG="Debug"
8
+ - NAME="azure-powershell-core" CONFIG="Debug" TESTS_TO_RUN="Core"
9
+ - NAME="azure-powershell-core" CONFIG="Debug" TESTS_TO_RUN="NonCore"
9
10
10
11
services :
11
12
- docker
@@ -24,7 +25,7 @@ before_install:
24
25
25
26
# https://github.com/travis-ci/travis-ci/issues/1066#issuecomment-383489298
26
27
script :
27
- - sudo dotnet msbuild build.proj /t:Full /p:ExcludeAuthenticators=true /p:Configuration=$CONFIG || travis_terminate 1
28
+ - sudo dotnet msbuild build.proj /t:Full /p:ExcludeAuthenticators=true /p:Configuration=$CONFIG /p:TestsToRun=$TESTS_TO_RUN || travis_terminate 1
28
29
29
30
after_success :
30
31
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
Original file line number Diff line number Diff line change 60
60
<BuildInParallel Condition =" '$(BuildInParallel)' == ''" >true</BuildInParallel >
61
61
<NuGetPublishingSource Condition =" '$(NuGetPublishingSource)' == '' " >$(LibrarySourceFolder)</NuGetPublishingSource >
62
62
<Scope Condition =" $(Scope) == ''" >All</Scope >
63
+ <TestsToRun Condition =" $(TestsToRun) == ''" >All</TestsToRun >
63
64
<BuildTasksPath >$(LibraryToolsFolder)/BuildPackagesTask/Microsoft.Azure.Build.Tasks/bin/$(Configuration)</BuildTasksPath >
64
65
<StackPackageFolder >$(LibrarySourceFolder)/Stack</StackPackageFolder >
65
66
<NetCore Condition =" '$(NetCore)' != 'true'" >false</NetCore >
379
380
<PropertyGroup Condition =" '$(ExcludeAuthenticators)' == 'true'" >
380
381
<AuthenticatorExclusions >$(LibraryRoot)src/**/Authenticators.csproj;</AuthenticatorExclusions >
381
382
</PropertyGroup >
383
+ <PropertyGroup Condition =" '$(TestsToRun)' != 'All'" >
384
+ <CoreTests >$(LibraryRoot)src/Compute/Compute.Test/Compute.Test.csproj;$(LibraryRoot)src/Network/Network.Test/Network.Test.csproj;$(LibraryRoot)src/Resources/Resources.Test/Resources.Test.csproj;$(LibraryRoot)src/Sql/Sql.Test/Sql.Test.csproj;$(LibraryRoot)src/Websites/Websites.Test/Websites.Test.csproj;</CoreTests >
385
+ </PropertyGroup >
382
386
<PropertyGroup Condition =" '$(Framework)' == ''" >
383
387
<Framework >netcoreapp2.0</Framework >
384
388
</PropertyGroup >
390
394
<MakeDir Directories =" $(TestOutputDirectory)" ContinueOnError =" false" />
391
395
<Exec Command =" dotnet new sln -n Azure.PowerShell --force" />
392
396
<ItemGroup >
393
- <ModuleCsprojFiles Include =" $(LibraryRoot)src/**/*.csproj" Exclude =" $(AuthenticatorExclusions)" />
397
+ <ModuleCsprojFiles Include =" $(LibraryRoot)src/**/*.csproj" Exclude =" $(AuthenticatorExclusions)" Condition =" '$(TestsToRun)' == 'All'" />
398
+ <ModuleCsprojFiles Include =" $(LibraryRoot)src/**/*.csproj" Exclude =" $(AuthenticatorExclusions)$(CoreTests)" Condition =" '$(TestsToRun)' == 'NonCore'" />
399
+ <ModuleCsprojFiles Include =" $(CoreTests)" Condition =" '$(TestsToRun)' == 'Core'" />
394
400
</ItemGroup >
395
401
<!-- https://stackoverflow.com/a/35477012/294804 -->
396
402
<ItemGroup >
You can’t perform that action at this time.
0 commit comments