Anki/.buildkite/linux/entrypoint
2023-04-26 17:11:24 +10:00

26 lines
507 B
Bash
Executable file

#!/bin/bash
set -e
# check author has added themselves to CONTRIBUTORS
echo "--- Checking CONTRIBUTORS"
.buildkite/linux/check_contributors
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
./ninja pylib/anki qt/aqt 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