From cf445b2e7327fbf8df939c64e777a5a08c151d01 Mon Sep 17 00:00:00 2001 From: Moritz Kiefer Date: Wed, 10 Nov 2021 13:55:33 +0100 Subject: [PATCH] Skip platform independence tests on release PRs (#11631) * Skip platform independence tests on release PRs changelog_begin changelog_end * yaml that shit changelog_begin changelog_end --- ci/build-unix.yml | 1 + ci/build-windows.yml | 1 + ci/build.yml | 2 ++ ci/publish-platform-independence-dar.yml | 3 ++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/build-unix.yml b/ci/build-unix.yml index 542ef6921fbc..270301b44563 100644 --- a/ci/build-unix.yml +++ b/ci/build-unix.yml @@ -41,6 +41,7 @@ steps: - template: publish-platform-independence-dar.yml parameters: platform: '${{parameters.name}}' + is_release: '${{parameters.is_release}}' - task: PublishBuildArtifacts@1 condition: succeededOrFailed() diff --git a/ci/build-windows.yml b/ci/build-windows.yml index 7d9b615260b8..a459e468434b 100644 --- a/ci/build-windows.yml +++ b/ci/build-windows.yml @@ -35,6 +35,7 @@ steps: - template: publish-platform-independence-dar.yml parameters: platform: 'windows' + is_release: '${{parameters.is_release}}' - task: PublishBuildArtifacts@1 condition: failed() diff --git a/ci/build.yml b/ci/build.yml index cd8f185a62fa..4b72f260ce3d 100644 --- a/ci/build.yml +++ b/ci/build.yml @@ -352,6 +352,8 @@ jobs: - template: report-end.yml - job: platform_independence_test + condition: and(succeeded(), + eq(dependencies.check_for_release.outputs['out.is_release'], 'false')) dependsOn: - Windows - Linux diff --git a/ci/publish-platform-independence-dar.yml b/ci/publish-platform-independence-dar.yml index d7458d29307c..184f0ff7d71f 100644 --- a/ci/publish-platform-independence-dar.yml +++ b/ci/publish-platform-independence-dar.yml @@ -3,10 +3,11 @@ parameters: platform: '' + is_release: '' steps: - task: PublishBuildArtifacts@1 inputs: pathtoPublish: bazel-bin/compiler/damlc/tests/platform-independence.dar artifactName: platform-independence-dar-${{parameters.platform}} - + condition: and(succeeded(), eq(${{parameters.is_release}}, 'false'))