Skip to content

Commit

Permalink
Skip platform independence tests on release PRs (#11631)
Browse files Browse the repository at this point in the history
* Skip platform independence tests on release PRs

changelog_begin
changelog_end

* yaml that shit

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Nov 10, 2021
1 parent b8f384e commit cf445b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/build-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions ci/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ steps:
- template: publish-platform-independence-dar.yml
parameters:
platform: 'windows'
is_release: '${{parameters.is_release}}'

- task: PublishBuildArtifacts@1
condition: failed()
Expand Down
2 changes: 2 additions & 0 deletions ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/publish-platform-independence-dar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

0 comments on commit cf445b2

Please sign in to comment.