mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
42 lines
1.9 KiB
Text
42 lines
1.9 KiB
Text
startup --expand_configs_in_place
|
|
|
|
# Show us information about failures.
|
|
build --verbose_failures
|
|
test --test_output=errors
|
|
|
|
# Include git version info
|
|
build --stamp
|
|
build --workspace_status_command hack/print-workspace-status.sh
|
|
|
|
# Make /tmp hermetic
|
|
build --sandbox_tmpfs_path=/tmp
|
|
|
|
# Ensure that Bazel never runs as root, which can cause unit tests to fail.
|
|
# This flag requires Bazel 0.5.0+
|
|
build --sandbox_fake_username
|
|
|
|
# Enable go race detection.
|
|
build:unit --features=race
|
|
test:unit --features=race
|
|
|
|
test:unit --build_tests_only
|
|
test:unit --test_tag_filters=-e2e,-integration
|
|
test:unit --flaky_test_attempts=3
|
|
|
|
test:integration --local_test_jobs 4
|
|
test:integration --test_tag_filters=integration
|
|
|
|
# Darwin and Windows only cross-compile pure Go
|
|
build:cross:darwin_386 --platforms=@io_bazel_rules_go//go/toolchain:darwin_386
|
|
build:cross:darwin_amd64 --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64
|
|
build:cross:windows_386 --platforms=@io_bazel_rules_go//go/toolchain:windows_386
|
|
build:cross:windows_amd64 --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64
|
|
|
|
# We enable cgo cross-compilation for Linux, but need to use our custom crosstool.
|
|
build:repo_infra_crosstool --crosstool_top=@io_k8s_repo_infra//tools:toolchain --compiler=gcc
|
|
build:cross:linux_386 --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_386
|
|
build:cross:linux_amd64 --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 --cpu=amd64
|
|
build:cross:linux_arm --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_arm --cpu=arm
|
|
build:cross:linux_arm64 --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64 --cpu=arm64
|
|
build:cross:linux_ppc64le --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_ppc64le --cpu=ppc64le
|
|
build:cross:linux_s390x --config=repo_infra_crosstool --platforms=@io_bazel_rules_go//go/toolchain:linux_s390x --cpu=s390x
|