diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-07-24 16:26:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 16:26:48 +0300 |
commit | 57a6ebbf1ab30f2ea4aa98c60be5da428c3eaed0 (patch) | |
tree | 7dd94e16ace235b5687d1816c619f33c044ece4e /scripts | |
parent | 71630cce754551e2f0414d59afb8824e7e0b0cfc (diff) |
[netcore] Run tests only on public builds (#15812)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ci/pipeline-netcore-runtime.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/ci/pipeline-netcore-runtime.yml b/scripts/ci/pipeline-netcore-runtime.yml index 689f48e61e0..1d653be3423 100644 --- a/scripts/ci/pipeline-netcore-runtime.yml +++ b/scripts/ci/pipeline-netcore-runtime.yml @@ -106,7 +106,7 @@ jobs: - bash: | make -C netcore update-tests-corefx displayName: 'Download CoreFX Tests' - condition: ne(variables['poolname'], 'Hosted VS2017') + condition: and(eq(variables['System.TeamProject'], 'public'), ne(variables['poolname'], 'Hosted VS2017')) - bash: | rm -rf .failures @@ -119,14 +119,14 @@ jobs: done displayName: 'Run CoreFX Tests' timeoutInMinutes: 90 - condition: ne(variables['poolname'], 'Hosted VS2017') + condition: and(eq(variables['System.TeamProject'], 'public'), ne(variables['poolname'], 'Hosted VS2017')) - task: PublishTestResults@2 inputs: testRunTitle: $(poolname) testResultsFormat: 'XUnit' testResultsFiles: 'netcore/corefx/tests/TestResult-*.xml' - condition: ne(variables['poolname'], 'Hosted VS2017') + condition: and(eq(variables['System.TeamProject'], 'public'), ne(variables['poolname'], 'Hosted VS2017')) - bash: | make -C netcore xunit-summary @@ -136,7 +136,7 @@ jobs: fi displayName: 'Validate test results' timeoutInMinutes: 90 - condition: ne(variables['poolname'], 'Hosted VS2017') + condition: and(eq(variables['System.TeamProject'], 'public'), ne(variables['poolname'], 'Hosted VS2017')) - ${{ if and(ne(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}: - powershell: | |