2022-01-03 19:36:51 +03:00
|
|
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2020-04-28 17:06:36 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: test_flags
|
|
|
|
type: string
|
|
|
|
default: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- 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'
|
|
|
|
targetPath: $(Build.SourcesDirectory)/compatibility/head_sdk
|
2020-04-28 17:06:36 +03:00
|
|
|
- powershell: '.\compatibility\build-release-artifacts-windows.ps1'
|
|
|
|
displayName: 'Build release artifacts'
|
|
|
|
- powershell: '.\compatibility\test-windows.ps1 ${{ parameters.test_flags }}'
|
|
|
|
displayName: 'Run tests'
|