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:
Moritz Kiefer 2020-02-14 15:08:24 +01:00 committed by GitHub
parent 7124479647
commit d68d197948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 6 deletions

View File

@ -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):

View File

@ -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

View File

@ -68,6 +68,7 @@ pom_file(
scaladoc_jar(
name = "shaded_binary_scaladoc",
srcs = [],
tags = ["scaladoc"],
deps = [],
) if is_windows == False else None

View File

@ -113,6 +113,7 @@ pom_file(
scaladoc_jar(
name = "shaded_binary_scaladoc",
srcs = [],
tags = ["scaladoc"],
deps = [],
) if is_windows == False else None

View File

@ -321,6 +321,7 @@ pom_file(
scaladoc_jar(
name = "ledger-api-scalapb_scaladoc",
srcs = [],
tags = ["scaladoc"],
deps = [],
) if is_windows == False else None