mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
cargo config 1. MUSL is no longer the default target. This allows building on Mac and Windows. 2. On Linux, code coverage compiler options are supplied by default. pre-commit, pre-push - Coverage is turned on only on Linux - clippy is run on all platforms github - MUSL build is tested to ensure that stand alone executables can be created Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
18 lines
367 B
Bash
Executable File
18 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
set -eo pipefail
|
|
|
|
if [ -f Cargo.toml ]; then
|
|
# Run precommit checks
|
|
dir=$(dirname "${BASH_SOURCE[0]}")
|
|
"$dir/pre-commit"
|
|
|
|
# Ensure that all tests pass
|
|
# Also generate coverage information.
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
scripts/coverage
|
|
fi
|
|
fi
|