Use bash syntax to check value of TRAVIS_RUST_VERSION

This commit is contained in:
John-John Tedro 2020-07-25 09:19:21 +02:00
parent 261273bac3
commit be86927bc5

View File

@ -5,9 +5,7 @@ set -ex
cargo build --verbose
cargo test --verbose
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]
then
if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then
cargo build --verbose --features no_std
cargo test --verbose --features no_std
fi