diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ec18d8..7f9f002 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ test-default: before_script: - cargo -V script: - - cargo test --workspace --tests + - cargo test --workspace --tests -- --ignored cache: paths: - cargo/ @@ -26,6 +26,7 @@ test-all: - cargo -V script: - cargo test --workspace --all-features --doc + - cargo test trybuild_ui -- --ignored - cargo tarpaulin --target-dir target/tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'gotham_restful_derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v artifacts: paths: diff --git a/gotham_restful/tests/ui.rs b/gotham_restful/tests/trybuild_ui.rs similarity index 81% rename from gotham_restful/tests/ui.rs rename to gotham_restful/tests/trybuild_ui.rs index 04e6311..ac7adff 100644 --- a/gotham_restful/tests/ui.rs +++ b/gotham_restful/tests/trybuild_ui.rs @@ -1,10 +1,11 @@ use trybuild::TestCases; #[test] -fn ui() +#[ignore] +fn trybuild_ui() { let t = TestCases::new(); // always enabled t.compile_fail("tests/ui/from_body_enum.rs"); -} \ No newline at end of file +}