mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 00:35:25 +03:00
4916a28682
This is the first part of #5700 It adds tests that build create-daml-app using `daml build` and then run the codegen and build the UI. Contrary to our main tests these also run on Windows. This is actually reasonably simple by first building the typescript libraries on Linux and then downloading them on Windows. There are two parts that are still missing from the tests in the main workspace: 1. Building the extra feature. This should be fairly easy to add. 2. Running the pupeeter tests. At least MacOS and Linux should be reasonably easy. I don’t know what horrors Windows will throw at us. This step is what actually makes this a compatibility test. Currently it doesn’t actually launch Sandbox and the JSON API. Since this PR is already pretty large, I’d like to tackle those things separately. changelog_begin changelog_end
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
# Copyright (c) 2020 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'
|