1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 04:52:28 +00:00

make tarpaulin not timeout

This commit is contained in:
Dominic 2020-05-05 19:57:13 +02:00
parent e5f13792c6
commit bccefa8248
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@ test-default:
before_script: before_script:
- cargo -V - cargo -V
script: script:
- cargo test --workspace --tests - cargo test --workspace --tests -- --ignored
cache: cache:
paths: paths:
- cargo/ - cargo/
@ -26,6 +26,7 @@ test-all:
- cargo -V - cargo -V
script: script:
- cargo test --workspace --all-features --doc - 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 - 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: artifacts:
paths: paths:

View file

@ -1,10 +1,11 @@
use trybuild::TestCases; use trybuild::TestCases;
#[test] #[test]
fn ui() #[ignore]
fn trybuild_ui()
{ {
let t = TestCases::new(); let t = TestCases::new();
// always enabled // always enabled
t.compile_fail("tests/ui/from_body_enum.rs"); t.compile_fail("tests/ui/from_body_enum.rs");
} }