diff options
Diffstat (limited to 'taskcluster/scripts/builder/build-sm-rust-bindings.sh')
-rwxr-xr-x | taskcluster/scripts/builder/build-sm-rust-bindings.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/taskcluster/scripts/builder/build-sm-rust-bindings.sh b/taskcluster/scripts/builder/build-sm-rust-bindings.sh new file mode 100755 index 0000000000..e749712e70 --- /dev/null +++ b/taskcluster/scripts/builder/build-sm-rust-bindings.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -xe + +source $(dirname $0)/sm-tooltool-config.sh + +cd "$GECKO_PATH/js/rust" + +cp $GECKO_PATH/.cargo/config.in $GECKO_PATH/.cargo/config + +export RUSTFMT="$MOZ_FETCHES_DIR/rustc/bin/rustfmt" +export LD_LIBRARY_PATH="$MOZ_FETCHES_DIR/gcc/lib64" +# Enable backtraces if we panic. +export RUST_BACKTRACE=1 + +cargo test --verbose --frozen --features debugmozjs +cargo test --verbose --frozen |