mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
83ed13d799
* Move //ledger/ledger-api-test-tool to //ledger/ledger-api-tests/tool. And conformance.bzl to //ledger/ledger-api-tests. * Move test tool infra to //ledger/ledger-api-tests/infrastructure. * Split the ledger API test tool into smaller libraries. There is no change to behavior. CHANGELOG_BEGIN CHANGELOG_END * ledger-api-tests: Encapsulate performance tests. * ledger-api-tests: Extract a "runner" library. * ledger-api-tests: Publish libraries to Maven Central. * ledger-api-tests: Fix Scaladoc so it compiles correctly. Unfortunately I had to remove some Scaladoc in ActiveContractsServiceIT which is incorrectly interpreted as not being attached to anything. Fortunately, it's not actually that helpful. * compatibility: Fix paths to the Ledger API Test Tool. * Fix release types for ledger API test libraries. * test-common: Publish generated Scala. These libraries are dependencies of the ledger API tests components. * ledger-api-tests: Use "com.daml" as the group ID everywhere. * ledger-api-tests: Check that tests in `--additional` are valid. * compatibility: Fix a reference to ledger-api-test-tool I missed.
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
# Build the release artifacts required for running the compatibility
|
|
# tests against HEAD. At the moment this includes the SDK release tarball
|
|
# and the ledger-api-test-tool fat JAR.
|
|
|
|
set -eou pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
eval "$(./dev-env/bin/dade-assist)"
|
|
|
|
# We allow overwriting this since on CI we build this in a separate step and upload it first
|
|
# before fetching it in another step.
|
|
HEAD_TARGET_DIR=${1:-compatibility/head_sdk}
|
|
|
|
git clean -fxd -e 'daml-*.tgz' $HEAD_TARGET_DIR
|
|
|
|
bazel build \
|
|
//release:sdk-release-tarball \
|
|
//ledger/ledger-api-tests/tool:ledger-api-test-tool_deploy.jar \
|
|
//ledger/sandbox-on-x:app_deploy.jar
|
|
|
|
cp -f bazel-bin/release/sdk-release-tarball-ce.tar.gz "$HEAD_TARGET_DIR"
|
|
cp -f bazel-bin/ledger/ledger-api-tests/tool/ledger-api-test-tool_deploy.jar "$HEAD_TARGET_DIR"
|
|
cp -f bazel-bin/ledger/sandbox-on-x/app_deploy.jar "$HEAD_TARGET_DIR/sandbox-on-x_deploy.jar"
|
|
cp -f templates/create-daml-app-test-resources/messaging.patch "$HEAD_TARGET_DIR"
|