Skip to content

Commit

Permalink
Use --manifest-path instead of cd
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 4, 2021
1 parent df8d2c5 commit 09dc724
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ if [[ "$RUST_VERSION" == "nightly"* ]]; then

# Benchmarks are only checked on nightly because depending on unstable features.
cargo check --all --benches
cd crossbeam-channel/benchmarks
cargo check --bins
cd ../..
cargo check --bins --manifest-path crossbeam-channel/benchmarks/Cargo.toml

# Run address sanitizer on crossbeam-epoch
# Note: this will be significantly rewritten by https://github.com/crossbeam-rs/crossbeam/pull/591.
if [[ "$OSTYPE" == "linux"* ]]; then
cd crossbeam-epoch
cargo clean

# TODO: Once `cfg(sanitize = "..")` is stable, replace
Expand All @@ -43,8 +40,7 @@ if [[ "$RUST_VERSION" == "nightly"* ]]; then
--release \
--target x86_64-unknown-linux-gnu \
--features nightly \
--example sanitize

cd ..
--example sanitize \
--manifest-path crossbeam-epoch/Cargo.toml
fi
fi

0 comments on commit 09dc724

Please sign in to comment.