Commit 593b7183 authored by Andrew Jones's avatar Andrew Jones
Browse files

CI troubleshoot: completely remove trybuild

parent f0c2de08
Pipeline #82433 failed with stages
in 2 minutes and 14 seconds
......@@ -19,7 +19,6 @@ synstructure = "0.12"
[dev-dependencies]
ink_core = { path = ".." }
trybuild = "1.0.24"
[features]
default = ["std"]
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#[test]
fn compile_tests() {
let t = trybuild::TestCases::new();
t.pass("tests/ui/pass/flush.rs");
t.pass("tests/ui/pass/allocate_using.rs");
t.compile_fail("tests/ui/fail/flush_empty_enum.rs");
t.compile_fail("tests/ui/fail/allocate_using_enum.rs");
}
......@@ -35,7 +35,6 @@ ink_core = { path = "../../core/" }
ink_lang = { path = "..", default-features = false, features = ["ink-generate-abi"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"] }
trybuild = "1.0.24"
pretty_assertions = "0.6.1"
[lib]
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#[test]
fn compile_tests() {
let t = trybuild::TestCases::new();
t.pass("tests/ui/pass/01-noop-contract.rs");
t.pass("tests/ui/pass/02-flipper-contract.rs");
t.pass("tests/ui/pass/03-incrementer-contract.rs");
t.pass("tests/ui/pass/04-erc20-contract.rs");
t.pass("tests/ui/pass/05-erc721-contract.rs");
t.pass("tests/ui/pass/06-non-ink-items.rs");
t.pass("tests/ui/pass/07-flipper-as-dependency.rs");
t.compile_fail("tests/ui/fail/01-constructor-returns.rs");
t.compile_fail("tests/ui/fail/02-missing-constructor.rs");
t.compile_fail("tests/ui/fail/03-invalid-version.rs");
t.compile_fail("tests/ui/fail/04-missing-message.rs");
t.compile_fail("tests/ui/fail/05-forbidden-idents.rs");
t.compile_fail("tests/ui/fail/07-constructor-missing-self.rs");
t.compile_fail("tests/ui/fail/08-constructor-self-ref.rs");
t.compile_fail("tests/ui/fail/09-constructor-self-val.rs");
t.compile_fail("tests/ui/fail/10-async-constructor.rs");
t.compile_fail("tests/ui/fail/11-unsafe-constructor.rs");
t.compile_fail("tests/ui/fail/12-const-constructor.rs");
t.compile_fail("tests/ui/fail/13-abi-constructor.rs");
t.compile_fail("tests/ui/fail/14-missing-storage-struct.rs");
t.compile_fail("tests/ui/fail/15-multiple-storage-structs.rs");
t.compile_fail("tests/ui/fail/16-storage-impl-ident-conflict.rs");
t.compile_fail("tests/ui/fail/17-conflicting-ink-markers.rs");
t.compile_fail("tests/ui/fail/18-conflicting-ink-markers-2.rs");
t.compile_fail("tests/ui/fail/19-unknown-struct-ink-marker.rs");
t.compile_fail("tests/ui/fail/20-unknown-method-marker.rs");
}
Supports Markdown
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