Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

CI: Enable debug assertions in Wasmer sandbox test #12540

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions frame/support/test/tests/construct_runtime_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::env;

#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn ui() {
// Only run the ui tests when `RUN_UI_TESTS` is set.
if env::var("RUN_UI_TESTS").is_err() {
if std::env::var("RUN_UI_TESTS").is_err() {
return
}

// As trybuild is using `cargo check`, we don't need the real WASM binaries.
env::set_var("SKIP_WASM_BUILD", "1");
std::env::set_var("SKIP_WASM_BUILD", "1");

let t = trybuild::TestCases::new();
t.compile_fail("tests/construct_runtime_ui/*.rs");
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci/gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ test-wasmer-sandbox:
- .docker-env
- .test-refs-wasmer-sandbox
variables:
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
RUST_BACKTRACE: 1
WASM_BUILD_NO_COLOR: 1
WASM_BUILD_RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
CI_JOB_NAME: "test-wasmer-sandbox"
parallel: 3
script:
Expand Down