mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 12:55:41 +00:00
Updating shell.nix nightly (#11266)
* The 2022-02-10 nightly can't build some deps There's a sig that returns `impl IntoIterator<Item = (&'static str, OsString)>` and an Option is being retured but it's incorrectly not allowing a `?` in the method. * removing duplicate test * [ci] add job cargo-check-nixos * add dummy variables nix check * fix check-dependent jobs * fix check-dependent-project template Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
@@ -263,6 +263,20 @@ cargo-clippy:
|
|||||||
script:
|
script:
|
||||||
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo +nightly clippy --all-targets
|
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo +nightly clippy --all-targets
|
||||||
|
|
||||||
|
cargo-check-nixos:
|
||||||
|
stage: test
|
||||||
|
<<: *docker-env
|
||||||
|
<<: *test-refs
|
||||||
|
before_script: []
|
||||||
|
variables:
|
||||||
|
CI_IMAGE: "nixos/nix"
|
||||||
|
SNAP: "DUMMY"
|
||||||
|
WS_API: "DUMMY"
|
||||||
|
script:
|
||||||
|
- nix-channel --update
|
||||||
|
- nix-shell shell.nix
|
||||||
|
- nix-shell --run "cargo check --workspace --all-targets --all-features"
|
||||||
|
|
||||||
cargo-check-benches:
|
cargo-check-benches:
|
||||||
stage: test
|
stage: test
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ let
|
|||||||
rev = "15b7a05f20aab51c4ffbefddb1b448e862dccb7d";
|
rev = "15b7a05f20aab51c4ffbefddb1b448e862dccb7d";
|
||||||
});
|
});
|
||||||
nixpkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
|
nixpkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
|
||||||
rust-nightly = with nixpkgs; ((rustChannelOf { date = "2022-02-10"; channel = "nightly"; }).rust.override {
|
rust-nightly = with nixpkgs; ((rustChannelOf { date = "2022-04-20"; channel = "nightly"; }).rust.override {
|
||||||
extensions = [ "rust-src" ];
|
extensions = [ "rust-src" ];
|
||||||
targets = [ "wasm32-unknown-unknown" ];
|
targets = [ "wasm32-unknown-unknown" ];
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1098,21 +1098,6 @@ mod remote_tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
|
||||||
async fn can_build_child_tree() {
|
|
||||||
init_logger();
|
|
||||||
Builder::<Block>::new()
|
|
||||||
.mode(Mode::Online(OnlineConfig {
|
|
||||||
transport: "wss://rpc.polkadot.io:443".to_owned().into(),
|
|
||||||
pallets: vec!["Crowdloan".to_owned()],
|
|
||||||
..Default::default()
|
|
||||||
}))
|
|
||||||
.build()
|
|
||||||
.await
|
|
||||||
.expect(REMOTE_INACCESSIBLE)
|
|
||||||
.execute_with(|| {});
|
|
||||||
}
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn can_create_child_snapshot() {
|
async fn can_create_child_snapshot() {
|
||||||
init_logger();
|
init_logger();
|
||||||
@@ -1196,9 +1181,7 @@ mod remote_tests {
|
|||||||
init_logger();
|
init_logger();
|
||||||
Builder::<Block>::new()
|
Builder::<Block>::new()
|
||||||
.mode(Mode::Online(OnlineConfig {
|
.mode(Mode::Online(OnlineConfig {
|
||||||
// transport: "wss://kusama-rpc.polkadot.io".to_owned().into(),
|
transport: "wss://rpc.polkadot.io:443".to_owned().into(),
|
||||||
transport: "ws://kianenigma-archive:9924".to_owned().into(),
|
|
||||||
// transport: "ws://localhost:9999".to_owned().into(),
|
|
||||||
pallets: vec!["Crowdloan".to_owned()],
|
pallets: vec!["Crowdloan".to_owned()],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user