-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathmain.yaml
More file actions
38 lines (36 loc) · 1.36 KB
/
main.yaml
File metadata and controls
38 lines (36 loc) · 1.36 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
version: "3"
includes:
clp-ffi-js: "clp-ffi-js.yaml"
integration: "integration.yaml"
toolchains: "../toolchains.yaml"
tasks:
rust-all:
vars:
LOG_INGESTOR_BUCKET: "clp-log-ingestor-test-bucket"
LOG_INGESTOR_QUEUE: "clp-log-ingestor-test-queue"
LOCALSTACK_CONTAINER_NAME:
# Normalize UUID casing: macOS generates uppercase while Linux generates lowercase.
sh: "uuidgen | tr '[:upper:]' '[:lower:]' | sed 's/^/clp-localstack-rust-/'"
LOCALSTACK_PORT:
sh: "tools/scripts/localstack/get-free-port.py"
dir: "{{.ROOT_DIR}}"
deps: ["toolchains:rust"]
cmds:
- |-
tools/scripts/localstack/start.py \
--name "{{.LOCALSTACK_CONTAINER_NAME}}" \
--port "{{.LOCALSTACK_PORT}}"
- defer: |-
tools/scripts/localstack/stop.py \
--name "{{.LOCALSTACK_CONTAINER_NAME}}"
- |-
tools/scripts/localstack/create-bucket.py \
--bucket "{{.LOG_INGESTOR_BUCKET}}" \
--queue "{{.LOG_INGESTOR_QUEUE}}" \
--port "{{.LOCALSTACK_PORT}}"
- |-
. "{{.G_RUST_TOOLCHAIN_ENV_FILE}}"
AWS_ENDPOINT_URL="http://localhost:{{.LOCALSTACK_PORT}}" \
CLP_LOG_INGESTOR_S3_BUCKET="{{.LOG_INGESTOR_BUCKET}}" \
CLP_LOG_INGESTOR_SQS_QUEUE="{{.LOG_INGESTOR_QUEUE}}" \
cargo nextest run --all --all-features --run-ignored all --release