This commit is contained in:
13
scripts/build-release.sh
Normal file
13
scripts/build-release.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
export CSR_BUILD_ID
|
||||
CSR_BUILD_ID=$(python3 "$ROOT/scripts/release-manifest.py" --source-id)
|
||||
for component in scanner controller gui; do
|
||||
cargo test --locked --manifest-path "$ROOT/$component/Cargo.toml"
|
||||
cargo build --locked --release --manifest-path "$ROOT/$component/Cargo.toml"
|
||||
done
|
||||
python3 -m unittest discover -s "$ROOT/tests" -p 'test_*.py'
|
||||
bash "$ROOT/tests/smoke.sh"
|
||||
python3 "$ROOT/scripts/release-manifest.py" --create "$ROOT/build/release.json"
|
||||
echo "Validated release: $CSR_BUILD_ID"
|
||||
Reference in New Issue
Block a user