2024-01-15 22:27:42 +03:00
|
|
|
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2020-04-24 15:43:35 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: test_flags
|
|
|
|
type: string
|
|
|
|
default: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- bash: ci/dev-env-install.sh
|
|
|
|
displayName: 'Build/Install the Developer Environment'
|
|
|
|
- bash: ci/configure-bazel.sh
|
|
|
|
displayName: 'Configure Bazel for root workspace'
|
|
|
|
env:
|
|
|
|
IS_FORK: $(System.PullRequest.IsFork)
|
|
|
|
# to upload to the bazel cache
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
- bash: ci/configure-bazel.sh
|
|
|
|
displayName: 'Configure Bazel for compatibility workspace'
|
|
|
|
env:
|
|
|
|
BAZEL_CONFIG_DIR: compatibility
|
|
|
|
IS_FORK: $(System.PullRequest.IsFork)
|
|
|
|
# to upload to the bazel cache
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
2020-05-13 11:39:51 +03:00
|
|
|
- task: DownloadPipelineArtifact@0
|
|
|
|
inputs:
|
|
|
|
artifactName: 'typescript-libs'
|
2024-03-22 04:27:46 +03:00
|
|
|
targetPath: $(Build.SourcesDirectory)/sdk/compatibility/head_sdk
|
2020-04-24 15:43:35 +03:00
|
|
|
- bash: |
|
|
|
|
set -euo pipefail
|
2024-03-22 04:27:46 +03:00
|
|
|
./sdk/compatibility/build-release-artifacts.sh
|
2020-04-24 15:43:35 +03:00
|
|
|
displayName: 'Build release artifacts'
|
|
|
|
- bash: |
|
|
|
|
set -eou pipefail
|
2024-03-22 04:27:46 +03:00
|
|
|
./sdk/compatibility/test.sh ${{ parameters.test_flags }}
|
2020-04-24 15:43:35 +03:00
|
|
|
displayName: 'Run tests'
|
2022-05-24 13:07:57 +03:00
|
|
|
condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], 'False'))
|
2022-02-17 01:37:50 +03:00
|
|
|
env:
|
|
|
|
DOCKER_LOGIN: $(DOCKER_LOGIN)
|
|
|
|
DOCKER_PASSWORD: $(DOCKER_PASSWORD)
|