mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Disable scaladoc on the MacOS CI (#4524)
* Disable scaladoc on the MacOS CI It is still built by default locally. fixes #4441 changelog_begin changelog_end * Change tag name
This commit is contained in:
parent
7124479647
commit
d68d197948
@ -405,6 +405,7 @@ def _create_scaladoc_jar(**kwargs):
|
||||
srcs = kwargs["srcs"],
|
||||
scalacopts = kwargs.get("scalacopts", []),
|
||||
generated_srcs = kwargs.get("generated_srcs", []),
|
||||
tags = ["scaladoc"],
|
||||
)
|
||||
|
||||
def da_scala_library(name, unused_dependency_checker_mode = "error", **kwargs):
|
||||
|
13
build.sh
13
build.sh
@ -13,6 +13,11 @@ export LC_ALL=en_US.UTF-8
|
||||
|
||||
ARTIFACT_DIRS="${BUILD_ARTIFACTSTAGINGDIRECTORY:-$PWD}"
|
||||
|
||||
tag_filter=""
|
||||
if [[ "$execution_log_postfix" == "_Darwin" ]]; then
|
||||
tag_filter="-dont-run-on-darwin,-scaladoc"
|
||||
fi
|
||||
|
||||
# Bazel test only builds targets that are dependencies of a test suite
|
||||
# so do a full build first.
|
||||
(
|
||||
@ -22,13 +27,9 @@ ARTIFACT_DIRS="${BUILD_ARTIFACTSTAGINGDIRECTORY:-$PWD}"
|
||||
# overload machines.
|
||||
# This also appears to be what Google uses internally, see
|
||||
# https://github.com/bazelbuild/bazel/issues/6394#issuecomment-436234594.
|
||||
bazel build -j 200 //...
|
||||
bazel build -j 200 //... --build_tag_filters "$tag_filter"
|
||||
)
|
||||
tag_filter=""
|
||||
if [[ "$execution_log_postfix" == "_Darwin" ]]; then
|
||||
tag_filter="-dont-run-on-darwin"
|
||||
fi
|
||||
bazel test -j 200 //... --test_tag_filters "$tag_filter" --experimental_execution_log_file "$ARTIFACT_DIRS/test_execution${execution_log_postfix}.log"
|
||||
bazel test -j 200 //... --build_tag_filters "$tag_filter" --test_tag_filters "$tag_filter" --experimental_execution_log_file "$ARTIFACT_DIRS/test_execution${execution_log_postfix}.log"
|
||||
# Make sure that Bazel query works.
|
||||
bazel query 'deps(//...)' > /dev/null
|
||||
# Check that we can load damlc in ghci
|
||||
|
@ -68,6 +68,7 @@ pom_file(
|
||||
scaladoc_jar(
|
||||
name = "shaded_binary_scaladoc",
|
||||
srcs = [],
|
||||
tags = ["scaladoc"],
|
||||
deps = [],
|
||||
) if is_windows == False else None
|
||||
|
||||
|
@ -113,6 +113,7 @@ pom_file(
|
||||
scaladoc_jar(
|
||||
name = "shaded_binary_scaladoc",
|
||||
srcs = [],
|
||||
tags = ["scaladoc"],
|
||||
deps = [],
|
||||
) if is_windows == False else None
|
||||
|
||||
|
@ -321,6 +321,7 @@ pom_file(
|
||||
scaladoc_jar(
|
||||
name = "ledger-api-scalapb_scaladoc",
|
||||
srcs = [],
|
||||
tags = ["scaladoc"],
|
||||
deps = [],
|
||||
) if is_windows == False else None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user