-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBUILD.bazel
More file actions
80 lines (73 loc) · 2.67 KB
/
BUILD.bazel
File metadata and controls
80 lines (73 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@rules_oci//oci:defs.bzl", "oci_image")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("//ci:rules.bzl", "write_ci_template_source_file")
# Run 'bazel run mypy-requirements.update' to update the lock file.
# If the lock file is empty, need to turn off mypy-integration for bazel
# to be able to run update script, otherwise it will try to find the
# empty dependencies for mypy and fail.
compile_pip_requirements(
name = "mypy-requirements",
src = ":mypy-requirements.in",
requirements_txt = ":mypy-requirements_lock.txt",
)
npm_link_all_packages()
oci_image(
name = "respect_base_image",
base = "@respect_base_image//:image",
visibility = ["//visibility:public"],
)
oci_image(
name = "envoy_base_image",
base = "@envoy_base_image//:image",
visibility = ["//visibility:public"],
)
exports_files([
# Make mypy config available to the `mypy_integration` for Bazel,
# to configure its mypy type checking.
"mypy.ini",
"mypy-requirements_lock.txt",
# Make the README available to be included in the npm packages.
"README.md",
])
write_ci_template_source_file(
name = "ci_workflows",
templates = {
".github/actions/debug-and-cancel/action.yml": [
"//ci/templates:debug-and-cancel.action.yml",
"//ci/templates:public_ci.yaml",
],
".github/actions/setup-bazel-remote-cache/action.yml": [
"//ci/templates:setup-bazel-remote-cache.action.yml",
"//ci/templates:public_ci.yaml",
],
".github/workflows/build_and_test.yml": [
"//ci/templates:build_and_test.yml.j2",
"//ci/templates:public_ci.yaml",
],
".github/workflows/devcontainer.yml": [
"//ci/templates:devcontainer.yml.j2",
"//ci/templates:public_ci.yaml",
],
".github/workflows/development_containers_build_test.yml": [
"//ci/templates:development_containers_build_test.yml",
"//ci/templates:public_ci.yaml",
],
".github/workflows/development_containers_build_test_push.yml": [
"//ci/templates:development_containers_build_test_push.yml.j2",
"//ci/templates:public_ci.yaml",
],
".github/workflows/manylinux.yml": [
"//ci/templates:manylinux.yml.j2",
"//ci/templates:public_ci.yaml",
],
".github/workflows/reboot_macos_environment.yml": [
"//ci/templates:reboot_macos_environment.yml.j2",
"//ci/templates:public_ci.yaml",
],
},
)
test_suite(
name = "ci_workflows_test",
tests = [":ci_workflows_tests"],
)