Skip to content

Commit 38cfbf0

Browse files
authored
test: add test-try-runtime step to CI (#624)
Fixes KILTprotocol/ticket#3036.
1 parent 94aec57 commit 38cfbf0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.gitlab-ci.yml

+23
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@ test-features:
3030
script:
3131
- cargo test --all --all-features --all-targets --locked
3232

33+
# TODO: The try-runtime-cli executable could be built as part of the Docker image directly, saving some time.
34+
test-try-runtime:
35+
parallel:
36+
matrix:
37+
- RUNTIME: "peregrine"
38+
ENDPOINT: "wss://peregrine.kilt.io:443"
39+
- RUNTIME: "spiritnet"
40+
ENDPOINT: "wss://spiritnet.kilt.io:443"
41+
timeout: 2 hours
42+
image: paritytech/ci-unified:bullseye-1.70.0
43+
stage: test
44+
variables:
45+
TRY_RUNTIME_CLI_VERSION_TAG: v0.6.1
46+
script:
47+
- curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/${TRY_RUNTIME_CLI_VERSION_TAG}/try-runtime-x86_64-unknown-linux-musl -o try-runtime
48+
- chmod +x ./try-runtime
49+
- ./try-runtime --version
50+
- cargo build --locked --release -p ${RUNTIME}-runtime --features try-runtime
51+
- ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check --checks=all live --uri=${ENDPOINT}
52+
- echo "try-runtime with all checks exited successfully."
53+
- ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check live --uri=${ENDPOINT}
54+
- echo "try-runtime with pre and post checks exited successfully."
55+
3356
build:
3457
timeout: 2 hours
3558
image:

0 commit comments

Comments
 (0)