Files
tubestation/taskcluster/scripts/builder/build-sm-rust-bindings.sh
2018-04-06 22:02:50 +09:00

20 lines
487 B
Bash
Executable File

#!/usr/bin/env bash
set -xe
source $(dirname $0)/sm-tooltool-config.sh
# Ensure that we have a .config/cargo that points us to our vendored crates
# rather than to crates.io.
cd "$SRCDIR/.cargo"
sed -e "s|@top_srcdir@|$SRCDIR|" -e 's|@[^@]*@||g' < config.in > config
cd "$SRCDIR/js/rust"
export LD_LIBRARY_PATH="$TOOLTOOL_CHECKOUT/gcc/lib64"
# Enable backtraces if we panic.
export RUST_BACKTRACE=1
cargo test --verbose --frozen --features debugmozjs
cargo test --verbose --frozen