Skip to content

Commit

Permalink
add Bazel's Buildkite configuration
Browse files Browse the repository at this point in the history
Closes bazelbuild#4900.

PiperOrigin-RevId: 190043375
  • Loading branch information
buchgr authored and Copybara-Service committed Mar 22, 2018
1 parent a3dd777 commit 1d182e9
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 1 deletion.
68 changes: 68 additions & 0 deletions .bazelci/postsubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
platforms:
ubuntu1404:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
ubuntu1604:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
macos:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
- "-//src/test/shell/bazel:bazel_determinism_test"
windows:
build_flags:
- "--copt=-w"
- "--host_copt=-w"
build_targets:
- "//src:bazel"
test_flags:
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=TEMP"
- "--test_env=JAVA_HOME"
- "--test_timeout=900"
test_targets:
- "//src:all_windows_tests"
80 changes: 80 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
platforms:
ubuntu1404:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
ubuntu1604:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
macos:
shell_commands:
- sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^#
android_ndk_repository/android_ndk_repository/' WORKSPACE
- rm -f WORKSPACE.bak
build_targets:
- "//src:bazel"
test_flags:
- "--test_timeout=900"
test_targets:
- "--"
- "//scripts/..."
- "//src/test/..."
- "//third_party/ijar/..."
- "//tools/android/..."
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4663
- "-//src/test/shell/bazel/android:android_ndk_integration_test"
# The below tests have been disabled because they are too slow on macOS.
# Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/4684
- "-//src/test/shell/bazel:bazel_determinism_test"
- "-//src/test/shell/bazel:bazel_java_test"
- "-//src/test/shell/bazel:bazel_bootstrap_distfile_test"
- "-//src/test/shell/bazel:remote_execution_test"
- "-//src/test/shell/bazel:remote_execution_http_test"
- "-//src/test/shell/bazel:skylark_git_repository_test"
- "-//src/test/shell/bazel:external_path_test"
- "-//src/test/py/bazel:runfiles_test"
- "-//src/test/shell/bazel:git_repository_test"
- "-//src/test/shell/bazel/android:aar_integration_test"
- "-//src/test/shell/bazel/android:android_integration_test"
windows:
build_flags:
- "--copt=-w"
- "--host_copt=-w"
build_targets:
- "//src:bazel"
test_flags:
- "--copt=-w"
- "--host_copt=-w"
- "--test_env=TEMP"
- "--test_env=JAVA_HOME"
- "--test_timeout=900"
test_targets:
- "//src:all_windows_tests"
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ filegroup(
"//src:srcs",
"//tools:srcs",
"//third_party:srcs",
],
] + glob([".bazelci/*"]),
visibility = ["//src/test/shell/bazel:__pkg__"],
)

Expand Down

0 comments on commit 1d182e9

Please sign in to comment.