| # Import shared settings first so we can override below |
| import %workspace%/common.bazelrc |
| |
| # Trick bazel into treating BUILD files under examples/* and e2e/* as being regular files |
| # This lets us glob() up all the files inside the examples to make them inputs to tests |
| # To update these lines, just run `yarn bazel:update-deleted-packages` |
| # (Note, we cannot use common --deleted_packages because the bazel version command doesn't support it) |
| build --deleted_packages=e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/fine_grained_symlinks,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker |
| query --deleted_packages=e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/fine_grained_symlinks,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker |
| |
| # Mock versioning command to test the --stamp behavior |
| build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" |
| # ... but when releasing, use the real script instead |
| build:release --stamp --workspace_status_command=./scripts/current_version.sh |
| |
| # Define environment value used by some tests such as //internal/npm_install/test:bazel_bin_test |
| build --define=SOME_TEST_ENV=some_value |
| test --define=SOME_TEST_ENV=some_value |
| build --action_env=SOME_OTHER_ENV=some_other_value |
| |
| ############################### |
| # Remote Build Execution support |
| # Turn on these settings with |
| # --config=remote |
| ############################### |
| |
| # Load default settings for Remote Build Execution. |
| import %workspace%/third_party/github.com/bazelbuild/bazel-toolchains/bazelrc/bazel-4.1.0.bazelrc |
| |
| # Remote instance, borrow the one used by Angular devs |
| build:remote --remote_instance_name=projects/internal-200822/instances/default_instance |
| build:remote --project_id=internal-200822 |
| |
| # To reproduce Windows issues where there is no runfiles symlink there |
| build:no-runfiles --noenable_runfiles |
| # workaround https://github.com/bazelbuild/bazel/issues/7994 |
| build:no-runfiles --spawn_strategy=standalone |
| # This config is probably only used while debugging |
| build:no-runfiles --define=VERBOSE_LOG=1 |
| |
| # Docker Sandbox Mode |
| # Useful for troubleshooting Remote Build Execution problems |
| # See https://docs.bazel.build/versions/master/remote-execution-sandbox.html#prerequisites |
| build:docker-sandbox --spawn_strategy=docker --strategy=Javac=docker --genrule_strategy=docker |
| build:docker-sandbox --define=EXECUTOR=remote |
| build:docker-sandbox --experimental_docker_verbose |
| build:docker-sandbox --experimental_enable_docker_sandbox |
| # This is the same image used on BazelCI rbe_ubuntu1604 job |
| build:docker-sandbox --experimental_docker_image=gcr.io/cloud-marketplace/google/rbe-ubuntu16-04 |
| |
| # Incompatible flags to run with |
| build --incompatible_no_implicit_file_export |
| # TODO(mattem): flip this when dependencies allow |
| # build --incompatible_struct_has_no_methods |
| # TODO(alexeagle): turn on this flag when dependencies allow |
| # build --incompatible_use_platforms_repo_for_constraints |
| |
| # Allow exclusive tests to run in a sandbox |
| test --incompatible_exclusive_test_sandboxed |