-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
29 lines (26 loc) · 774 Bytes
/
BUILD.bazel
File metadata and controls
29 lines (26 loc) · 774 Bytes
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
load("@bazelruby_rules_ruby//ruby:defs.bzl", "ruby_library", "ruby_test")
load("//steep:def.bzl", "steep_check")
ruby_library(
name = "lib",
srcs = glob(["lib/**/*.rb"]),
deps = [],
)
steep_check(
name = "typecheck",
bin = "@bundle_example//:bin/steep",
dir = "./example",
srcs = ["Steepfile", ":lib"] + glob(["sig/**/*.rbs"]),
deps = [":lib", "@bundle_example//:bin"],
)
# steep_check above is equivalent ruby_test below
ruby_test(
name = "typecheck-test",
main = "@bundle_example//:bin/steep",
args = [
"check",
"--steepfile=example/Steepfile",
"--steep-command=example/typecheck-test",
],
srcs = ["Steepfile", ":lib"] + glob(["sig/**/*.rbs"]),
deps = [":lib", "@bundle_example//:bin"],
)