forked from wormhole-foundation/wormhole-sdk-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
29 lines (24 loc) · 1.03 KB
/
Tiltfile
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('ext://namespace', 'namespace_create')
load('ext://git_resource', 'git_checkout')
git_checkout('[email protected]:wormhole-foundation/wormhole.git#main', "__tests__/staging/wormhole")
load("__tests__/staging/wormhole/Tiltfile", "namespace", "k8s_yaml_with_ns", "set_env_in_jobs", "num_guardians")
config.clear_enabled_resources()
config.set_enabled_resources([
"guardian", # Also adds in all the chains we need
"connect-sdk-ci-tests"
])
# Without this, some resources cant find the namespace?
namespace_create(namespace, allow_duplicates=True)
docker_build(
ref = "connect-sdk-test",
context = ".",
dockerfile = "__tests__/Dockerfile",
only = [],
)
k8s_yaml_with_ns(encode_yaml_stream(set_env_in_jobs(read_yaml_stream("__tests__/tests.yaml"), "NUM_GUARDIANS", str(num_guardians))))
k8s_resource(
"connect-sdk-ci-tests",
labels = ["connect-sdk-ci"],
trigger_mode = TRIGGER_MODE_AUTO,
resource_deps = [], # wait-run.sh, specified in the tests.yaml file, handles waiting. Not having deps gets the build earlier.
)