From 3abe7cc4d09fb52e18eb6342c172d05d60028d67 Mon Sep 17 00:00:00 2001 From: Vladimir Istyufeev Date: Tue, 24 Aug 2021 13:22:50 +0300 Subject: [PATCH] Run tests for the wasmer sandbox (#9610) --- substrate/.gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 5a2d8c5b48..98b29fa65e 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -113,6 +113,26 @@ default: - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs +.test-refs-wasmer-sandbox: &test-refs-wasmer-sandbox + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_COMMIT_REF_NAME == "master" + changes: + - client/executor/**/* + - frame/contracts/**/* + - primitives/sandbox/**/* + - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs + changes: + - client/executor/**/* + - frame/contracts/**/* + - primitives/sandbox/**/* + - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 + changes: + - client/executor/**/* + - frame/contracts/**/* + - primitives/sandbox/**/* + .build-refs: &build-refs rules: - if: $CI_PIPELINE_SOURCE == "pipeline" @@ -426,6 +446,16 @@ test-full-crypto-feature: - time cargo +nightly build --verbose --no-default-features --features full_crypto - sccache -s +test-wasmer-sandbox: + stage: test + <<: *docker-env + <<: *test-refs-wasmer-sandbox + variables: + <<: *default-vars + script: + - time cargo test --release --features runtime-benchmarks,wasmer-sandbox + - sccache -s + cargo-check-macos: stage: test # shell runner on mac ignores the image set in *docker-env