Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 34461aa

Browse files
committed
ci: add beta workaround due to rust-lang/rust#60846
1 parent b68645f commit 34461aa

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ matrix:
1616
include:
1717
- rust: nightly
1818
cache: false
19-
sudo: required # Work around for travis-ci/travis-ci#9061
19+
# FIXME: turn this back on when code coverage is enabled
20+
#sudo: required # Work around for travis-ci/travis-ci#9061
2021
env:
2122
- RUSTFLAGS="-C link-dead-code" # Enable better code coverage at the cost of binary size
2223
script:
@@ -35,6 +36,20 @@ matrix:
3536
# - ./ci/install-kcov.sh && ./ci/coverage.sh
3637

3738
- rust: beta
39+
# FIXME: temporarily building without default features on beta as well due to rust-lang/rust#60846
40+
script:
41+
- cargo check --no-default-features
42+
# NB: don't run with the top-level feature enabled see rust-lang/rust#60444
43+
- cargo check --no-default-features --features 'conch-parser'
44+
# Retry with fewer cores if the initial `cargo test` fails to work around possible OOM errors
45+
# for more details see https://github.com/rust-lang/cargo/issues/4415
46+
- cargo test --no-fail-fast --no-default-features --features 'conch-parser' ||
47+
(
48+
echo 'initial `cargo test` failed, retrying with fewer cores to work around OOM issues' &&
49+
cargo test --no-fail-fast --verbose -j 1
50+
cargo test --no-fail-fast --no-default-features --features 'conch-parser'
51+
)
52+
3853
- rust: stable
3954
- rust: 1.26.0
4055
- os: osx

0 commit comments

Comments
 (0)