forked from paritytech/zombienet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (34 loc) · 928 Bytes
/
.gitlab-ci.yml
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
stages:
- integration-test
cache:
- key:
files:
- Cargo.lock
- paths:
- target
- ${CARGO_HOME}
include:
# ci image
- project: parity/infrastructure/ci_cd/shared
ref: main
file: /common/ci-unified.yml
# run jobs always
.common-refs: &common-refs
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "main"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
k8s-integration-test-smoke:
stage: integration-test
<<: *common-refs
image: "${CI_IMAGE}"
tags:
- zombienet-polkadot-integration-test
script:
- RUST_LOG=zombienet_orchestrator=debug,zombienet_provider=debug cargo test --test smoke -- --nocapture
variables:
CI_IMAGE: !reference [.ci-unified, variables, CI_IMAGE]
RUN_IN_CI: "1"
ZOMBIE_PROVIDER: "k8s"