-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to an environment variable for enabling Oracle tests. (#9511)
* participant-integration-api: Build Oracle tests, but don't run them. CHANGELOG_BEGIN CHANGELOG_END * triggers: Switch to an environment variable for enabling Oracle tests. * http-json: Switch to an environment variable for enabling Oracle tests. * Disable running Oracle tests by default, not building them. * triggers/service: Remove unused test dependencies.
- Loading branch information
1 parent
e39c20e
commit 8cd3658
Showing
7 changed files
with
202 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
def _impl(ctx): | ||
# Generates an empty BUILD file, because we do not need to build anything. | ||
ctx.file( | ||
"BUILD", | ||
content = """exports_files(["index.bzl"])""", | ||
executable = False, | ||
) | ||
|
||
testing = ctx.os.environ.get("DAML_ORACLE_TESTING", default = "false") == "true" | ||
|
||
ctx.file( | ||
"index.bzl", | ||
content = """ | ||
oracle_testing = {testing} | ||
""".format( | ||
testing = testing, | ||
), | ||
executable = False, | ||
) | ||
|
||
oracle_configure = repository_rule( | ||
environ = ["DAML_ORACLE_TESTING"], | ||
implementation = _impl, | ||
attrs = {}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.