mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
a925f0174c
* update copyright notices for 2021 To be merged on 2021-01-01. CHANGELOG_BEGIN CHANGELOG_END * patch-bazel-windows & da-ghc-lib
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# 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)
|
|
- task: DownloadPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'typescript-libs'
|
|
targetPath: $(Build.SourcesDirectory)/compatibility/head_sdk
|
|
- bash: |
|
|
set -euo pipefail
|
|
./compatibility/build-release-artifacts.sh
|
|
displayName: 'Build release artifacts'
|
|
- bash: |
|
|
set -eou pipefail
|
|
./compatibility/test.sh ${{ parameters.test_flags }}
|
|
displayName: 'Run tests'
|