Skip to content

Commit 52b56f4

Browse files
authored
Merge pull request microsoft#526 from anakrish/quick-fixes
Quick fixes
2 parents 8b84d4c + ce85e01 commit 52b56f4

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

scripts/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -eo pipefail
66

77
if [ -f Cargo.toml ]; then
88
# Ensure that all targets can be built.
9-
cargo build -r --all-targets
9+
cargo build --all-targets
1010

1111
#Ensure that code is correctly formatted.
1212
cargo fmt --check || (echo "Run cargo fmt to fix formatting" && exit 1)

scripts/pre-push

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ if [ -f Cargo.toml ]; then
1010
"$dir/pre-commit"
1111

1212
# Ensure that the public API works.
13-
cargo test -r --doc
13+
cargo test --doc
1414

1515
# Ensure that no_std build succeeds.
1616
# Build for a target that has no std available.
1717
if command -v rustup > /dev/null; then
1818
rustup target add thumbv7m-none-eabi
19-
(cd tests/ensure_no_std; cargo build -r --target thumbv7m-none-eabi --no-default-features --features opa-no-std)
19+
(cd tests/ensure_no_std; cargo build -r --target thumbv7m-none-eabi)
2020
fi
2121

2222
# Ensure that we can build with only std.
23-
cargo build -r --example regorus --no-default-features --features std
23+
cargo build --example regorus --no-default-features --features std
2424

2525
# Ensure that we can build with all features.
26-
cargo build -r --all-features
26+
cargo build --all-features
2727

2828
# Ensure that all tests pass.
29-
cargo test -r
30-
cargo test -r --test aci
31-
cargo test -r --test kata
29+
cargo test
30+
cargo test --test aci
31+
cargo test --test kata
3232

3333
# Ensure that all tests pass with extensions
34-
cargo test -r --features rego-extensions
35-
cargo test -r --test aci --features rego-extensions
36-
cargo test -r --test kata --features rego-extensions
34+
cargo test --features rego-extensions
35+
cargo test --test aci --features rego-extensions
36+
cargo test --test kata --features rego-extensions
3737

3838
# Ensure that OPA conformance tests don't regress.
39-
cargo test -r --features opa-testutil,serde_json/arbitrary_precision,rego-extensions --test opa -- $(tr '\n' ' ' < tests/opa.passing)
39+
cargo test --features opa-testutil,serde_json/arbitrary_precision,rego-extensions --test opa -- $(tr '\n' ' ' < tests/opa.passing)
4040
fi

0 commit comments

Comments
 (0)