Merge rust-bitcoin/rust-bitcoin#1238: CI clean ups
37cd6503f1
ci: Remove TOOLCHAIN env var (Tobin C. Harding)8eb6c23eaf
ci: Remove inner quotes from shell variable (Tobin C. Harding)58ede47ef1
ci: Use set -ex instead of /bin/sh -ex (Tobin C. Harding)4c4846f82a
Remove double blank line at EOF (Tobin C. Harding) Pull request description: Clean up the CI script. These patches are part of #1225, are beneficial to have before that PR resolves, and are trivial. ACKs for top commit: sanket1729: utACK37cd6503f1
apoelstra: ACK37cd6503f1
Tree-SHA512: f6b3379c8a1be7a3519461faeed35e35560e4228bddb59ef28ab3fb3ef2679afabfaccfeaffd78adbb66879aed02c092f3d9d1d1eb3193c811067ee75e876732
This commit is contained in:
commit
501821404d
|
@ -1,13 +1,9 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
FEATURES="base64 bitcoinconsensus serde rand secp-recovery"
|
FEATURES="base64 bitcoinconsensus serde rand secp-recovery"
|
||||||
|
|
||||||
# Use toolchain if explicitly specified
|
|
||||||
if [ -n "$TOOLCHAIN" ]
|
|
||||||
then
|
|
||||||
alias cargo="cargo +$TOOLCHAIN"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$DO_COV" = true ]
|
if [ "$DO_COV" = true ]
|
||||||
then
|
then
|
||||||
export RUSTFLAGS="-C link-dead-code"
|
export RUSTFLAGS="-C link-dead-code"
|
||||||
|
@ -78,7 +74,7 @@ fi
|
||||||
# Test each feature
|
# Test each feature
|
||||||
for feature in ${FEATURES}
|
for feature in ${FEATURES}
|
||||||
do
|
do
|
||||||
echo "********* Testing "$feature" *************"
|
echo "********* Testing $feature *************"
|
||||||
cargo test --verbose --features="$feature"
|
cargo test --verbose --features="$feature"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -102,11 +98,11 @@ fi
|
||||||
# Bench if told to, only works with non-stable toolchain (nightly, beta).
|
# Bench if told to, only works with non-stable toolchain (nightly, beta).
|
||||||
if [ "$DO_BENCH" = true ]
|
if [ "$DO_BENCH" = true ]
|
||||||
then
|
then
|
||||||
if [ "NIGHTLY" = false ]
|
if [ "$NIGHTLY" = false ]
|
||||||
then
|
then
|
||||||
if [ -n "TOOLCHAIN" ]
|
if [ -n "$RUSTUP_TOOLCHAIN" ]
|
||||||
then
|
then
|
||||||
echo "TOOLCHAIN is set to a non-nightly toolchain but DO_BENCH requires a nightly toolchain"
|
echo "RUSTUP_TOOLCHAIN is set to a non-nightly toolchain but DO_BENCH requires a nightly toolchain"
|
||||||
else
|
else
|
||||||
echo "DO_BENCH requires a nightly toolchain"
|
echo "DO_BENCH requires a nightly toolchain"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -305,4 +305,3 @@ mod test {
|
||||||
assert_eq!(got, want);
|
assert_eq!(got, want);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,3 @@ pub mod script;
|
||||||
pub mod transaction;
|
pub mod transaction;
|
||||||
pub mod block;
|
pub mod block;
|
||||||
pub mod witness;
|
pub mod witness;
|
||||||
|
|
||||||
|
|
|
@ -1538,4 +1538,3 @@ mod test {
|
||||||
assert!(read_scriptbool(&v));
|
assert!(read_scriptbool(&v));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1170,4 +1170,3 @@ mod tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,4 +179,3 @@ mod tests {
|
||||||
assert_eq!(serialize(&real_decode), from_sat);
|
assert_eq!(serialize(&real_decode), from_sat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2238,4 +2238,3 @@ mod tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -334,4 +334,3 @@ mod tests {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1177,4 +1177,3 @@ mod tests {
|
||||||
ExtendedPrivKey::from_str(xpriv_str).unwrap();
|
ExtendedPrivKey::from_str(xpriv_str).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue