This repository was archived by the owner on May 9, 2022. It is now read-only.
File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ matrix:
19
19
sudo : required # Work around for travis-ci/travis-ci#9061
20
20
env :
21
21
- RUSTFLAGS="-C link-dead-code" # Enable better code coverage at the cost of binary size
22
+ script :
23
+ - cargo check --no-default-features
24
+ # NB: don't run with the top-level feature enabled see rust-lang/rust#60444
25
+ - cargo check --no-default-features --features 'conch-parser'
26
+ # Retry with fewer cores if the initial `cargo test` fails to work around possible OOM errors
27
+ # for more details see https://github.com/rust-lang/cargo/issues/4415
28
+ - cargo test --no-fail-fast --no-default-features --features 'conch-parser' ||
29
+ (
30
+ echo 'initial `cargo test` failed, retrying with fewer cores to work around OOM issues' &&
31
+ cargo test --no-fail-fast --verbose -j 1
32
+ cargo test --no-fail-fast --no-default-features --features 'conch-parser' ||
33
+ )
22
34
after_success :
23
35
- ./ci/install-kcov.sh && ./ci/coverage.sh
24
36
Original file line number Diff line number Diff line change 31
31
32
32
#![ doc( html_root_url = "https://docs.rs/conch-runtime/0.1" ) ]
33
33
34
+ #![ cfg_attr( all( feature = "conch-parser" , feature = "top-level" ) , recursion_limit="128" ) ]
35
+
34
36
#![ cfg_attr( feature = "clippy" , feature( plugin) ) ]
35
37
#![ cfg_attr( feature = "clippy" , plugin( clippy) ) ]
36
38
You can’t perform that action at this time.
0 commit comments