Commit 380d4d1d authored by Qinxuan Chen's avatar Qinxuan Chen

Fix CI

Signed-off-by: Qinxuan Chen's avatarkoushiro <koushiro.cqx@gmail.com>
parent b748cc16
Pipeline #56170 failed with stages
in 13 minutes and 5 seconds
......@@ -43,7 +43,7 @@ variables:
- /^[0-9]+$/ # PRs
retry:
max: 2
when:
when:
- runner_system_failure
- unknown_failure
- api_failure
......@@ -88,12 +88,6 @@ cargo-test-af:
script:
- cargo test --verbose --all --all-features
cargo-build-nf:
stage: check-workspace
<<: *docker-env
script:
- cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
#### stage: examples
examples-wasm:
......
[workspace]
[package]
name = "ink"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "GPL-3.0"
readme = "README.md"
repository = "https://github.com/paritytech/ink"
documentation = "https://github.com/paritytech/ink/wiki"
homepage = "https://www.parity.io/"
description = "[ink!] Rust based eDSL for writing smart contracts for Substrate"
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
categories = ["no-std", "embedded"]
[workspace]
members = [
"utils",
"core",
......
......@@ -22,13 +22,13 @@ itertools = "0.8"
log = "0.4"
heck = "0.3"
futures = "0.1.28"
jsonrpc-core-client = { version = "13.0", features = ["ws"] }
jsonrpc-core-client = { version = "14.0", features = ["ws"] }
zip = { version = "0.5", default-features = false }
pwasm-utils = "0.11.0"
parity-wasm = "0.40.2"
cargo_metadata = "0.8.2"
substrate-primitives = { git = "https://github.com/paritytech/substrate/", package = "substrate-primitives" }
subxt = { git = "https://github.com/paritytech/substrate-subxt/", branch = "v0.1", package = "substrate-subxt" }
subxt = { git = "https://github.com/paritytech/substrate-subxt/", branch = "master", package = "substrate-subxt" }
tokio = "0.1.21"
url = "1.7"
......
......@@ -242,9 +242,6 @@ mod tests {
#[cfg(feature = "test-ci-only")]
#[test]
// FIXME: https://github.com/paritytech/ink/issues/202
// currently fails on CI because of global RUSTFLAGS overriding required `--import-memory`
#[ignore]
fn build_template() {
with_tmp_dir(|path| {
execute_new(AbstractionLayer::Lang, "new_project", Some(path))
......
......@@ -37,7 +37,6 @@
private_in_public,
safe_extern_statics,
unconditional_recursion,
unions_with_drop_fields,
unused_allocation,
unused_comparisons,
unused_parens,
......
......@@ -83,7 +83,8 @@ where
LayoutStruct::new(
Self::meta_type(),
vec![LayoutField::of("sync_chunk", &self.0)],
).into()
)
.into()
}
}
......
......@@ -16,10 +16,6 @@
#![cfg_attr(not(feature = "std"), no_std)]
use ink_core::{
memory::format,
storage,
};
use ink_lang::contract;
contract! {
......
......@@ -16,10 +16,6 @@
#![cfg_attr(not(feature = "std"), no_std)]
use ink_core::{
memory::format,
storage,
};
use ink_lang::contract;
contract! {
......
......@@ -16,10 +16,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
use ink_core::{
memory::format,
storage,
};
use ink_core::storage;
use ink_lang::contract;
#[derive(Debug, Copy, Clone, PartialEq, Eq, scale::Encode, scale::Decode)]
......
......@@ -16,10 +16,6 @@
#![cfg_attr(not(feature = "std"), no_std)]
use ink_core::{
memory::format,
storage,
};
use ink_lang::contract;
contract! {
......
......@@ -241,10 +241,12 @@ impl Contract {
}
Some(self_ty) => {
match self_ty {
ast::FnArg::SelfValue(_) | ast::FnArg::Captured(_) => bail!(
self_ty,
"contract messages must operate on `&self` or `&mut self`"
),
ast::FnArg::SelfValue(_) | ast::FnArg::Captured(_) => {
bail!(
self_ty,
"contract messages must operate on `&self` or `&mut self`"
);
}
_ => (),
}
}
......
......@@ -31,7 +31,6 @@
private_in_public,
safe_extern_statics,
unconditional_recursion,
unions_with_drop_fields,
unused,
unused_allocation,
unused_comparisons,
......
......@@ -35,9 +35,6 @@ results["clippy_no_defaults"]=$?
cargo test --verbose --all --all-features
results["test_all_features"]=$?
cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
results["build_wasm"]=$?
all_checks_passed=0
banner="-----------------"
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of ink!.
//
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment