add feature and fix ci (#9800)

This commit is contained in:
Guillaume Thiolliere
2021-09-20 16:49:04 +02:00
committed by GitHub
parent cddafd523e
commit 0930948580
7 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ test-wasmer-sandbox:
variables:
<<: *default-vars
script:
- time cargo test --release --features runtime-benchmarks,wasmer-sandbox
- time cargo test --release --features runtime-benchmarks,wasmer-sandbox,disable-ui-tests
- sccache -s
cargo-check-macos:
+2
View File
@@ -48,3 +48,5 @@ try-runtime = ["frame-support/try-runtime"]
# WARNING: CI only execute pallet test with this feature,
# if the feature intended to be used outside, CI and this message need to be updated.
conditional-storage = []
# Disable ui tests
disable-ui-tests = []
@@ -18,6 +18,7 @@
use std::env;
#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn ui() {
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
@@ -16,6 +16,7 @@
// limitations under the License.
#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn decl_module_ui() {
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
@@ -16,6 +16,7 @@
// limitations under the License.
#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn decl_storage_ui() {
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
@@ -16,6 +16,7 @@
// limitations under the License.
#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn derive_no_bound_ui() {
// As trybuild is using `cargo check`, we don't need the real WASM binaries.
@@ -16,6 +16,7 @@
// limitations under the License.
#[rustversion::attr(not(stable), ignore)]
#[cfg(not(feature = "disable-ui-tests"))]
#[test]
fn pallet_ui() {
// As trybuild is using `cargo check`, we don't need the real WASM binaries.