27 lines
441 B
Bash
Executable File
27 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "+++ Building and testing"
|
|
ln -sf out/node_modules .
|
|
|
|
export PATH="$PATH:/state/rust/cargo/bin"
|
|
export BUILD_ROOT=/state/build
|
|
export ONLINE_TESTS=1
|
|
|
|
if [ "$CLEAR_RUST" = "1" ]; then
|
|
rm -rf $BUILD_ROOT/rust
|
|
fi
|
|
|
|
./ninja pylib qt check
|
|
|
|
echo "--- Ensure libs importable"
|
|
SKIP_RUN=1 ./run
|
|
|
|
echo "--- Check Rust libs"
|
|
cargo install cargo-deny
|
|
cargo deny check -A duplicate
|
|
|
|
echo "--- Cleanup"
|
|
rm -rf /tmp/* || true
|