Skip to content

Commit

Permalink
eval(functions): pass automatic and fail early and good
Browse files Browse the repository at this point in the history
  • Loading branch information
RaitoBezarius committed Jul 24, 2023
1 parent 2f79f19 commit d0bc6a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/evaluation/unsandboxed/functions.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -euxo pipefail
export BUILDXYZ_RELEASE_VARIANT="release"
export BUILDXYZ_BINARY="./target/$BUILDXYZ_RELEASE_VARIANT/buildxyz"
# Improve the performance of the evaluation
Expand All @@ -7,6 +8,10 @@ export RUSTC_BOOTSTRAP=1

export buildxyz_global_flags=()

if [[ -v AUTOMATIC ]]; then
buildxyz_global_flags+=(--automatic)
fi

# Debugging infrastructure
export STRACE=""
export STRACE_EXTRA_FLAGS=""
Expand All @@ -24,7 +29,6 @@ pypi_buildxyz() {
package="$1"
PREFIX_DIR=$(mktemp -d)
echo "buildxyz $package in pip prefix $PREFIX_DIR"
echo $STRACE $BUILDXYZ_BINARY --record-to "examples/python/$package.toml" "pip install --use-feature=no-binary-enable-wheel-cache --prefix $PREFIX_DIR --no-binary :all: --no-cache-dir $package"
$STRACE $BUILDXYZ_BINARY "${buildxyz_global_flags[@]}" --record-to "examples/python/$package.toml" "pip install --use-feature=no-binary-enable-wheel-cache --prefix $PREFIX_DIR --no-binary :all: --no-cache-dir $package"
}

Expand Down

0 comments on commit d0bc6a3

Please sign in to comment.