- # Test workspaces for Rust stable, beta, and 1.34.2
- - if [ "$(rustup show | grep default | grep 1.22.0)" == "" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
- # Test lightning workspace for 1.22.0
- - if [ "$(rustup show | grep default | grep 1.22.0)" != "" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi
- # Run lightning workspace fuzz tests for Rust 1.34.2
- - if [ "$(rustup show | grep default | grep 1.34.2)" != "" ]; then cd lightning/fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
- - if [ "$(rustup show | grep default | grep stable)" != "" ]; then
+ # Test the appropriate workspace(s)
+ - if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
+ - if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi
+ # Run lightning workspace fuzz tests on Rust stable
+ - if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
+ # Generate code cov information on Rust 1.39.0
+ - if [ "$(rustup show | grep default | grep 1.39.0)" != "" ]; then