Skip to content

Commit

Permalink
*: support bazel (#33691)
Browse files Browse the repository at this point in the history
close #34083
  • Loading branch information
hawkingrei authored Jun 7, 2022
1 parent 5369b49 commit 2b4a4c6
Show file tree
Hide file tree
Showing 322 changed files with 17,268 additions and 1,401 deletions.
12 changes: 12 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
startup --host_jvm_args=-Xmx8g
startup --unlimit_coredumps

run --color=yes
build:release --workspace_status_command=./build/print-workspace-status.sh --stamp
build:release --config=ci
build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution
build:ci --remote_cache=http://172.16.4.3:8084/tidb
test:ci --verbose_failures
test:ci --test_env=GO_TEST_WRAP_TESTV=1
test:ci --remote_cache=http://172.16.4.3:8084/tidb
test:ci --test_env=TZ=Asia/Shanghai --test_output=errors --experimental_ui_max_stdouterr_bytes=104857600
5 changes: 5 additions & 0 deletions .github/licenserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ header:
- '.golangci.yml'
- '.golangci_br.yml'
- 'LICENSES/'
- '**/BUILD.bazel'
- 'WORKSPACE'
- '.bazelrc'
- '**/*.key'
- '**/*.md'
- '**/*.json'
Expand All @@ -19,6 +22,8 @@ header:
- '**/*.test'
- '**/*.result'
- '**/*.example'
- '**/*.patch'
- 'DEPS.bzl'
- '.codecov.yml'
- 'Jenkinsfile'
- '.editorconfig'
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ export-20*/
*-junit-report.xml
# Files generated when testing
out
/_bazel
bazel-bin
bazel-out
bazel-testlogs
bazel-tidb
.ijwb/
28 changes: 28 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:proto disable_global
# gazelle:prefix github.com/pingcap/tidb
# gazelle:exclude tidb-binlog/proto/proto
# gazelle:exclude plugin/conn_ip_example
gazelle(name = "gazelle")

package(default_visibility = ["//visibility:public"])

xcode_version(
name = "xcode_version",
version = "10.0",
)

filegroup(
name = "package-srcs",
srcs = glob(
["**"],
exclude = [
"bazel-*/**",
".git/**",
".idea/**",
],
),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
Loading

0 comments on commit 2b4a4c6

Please sign in to comment.