anki/.buildkite/linux/entrypoint

25 lines
644 B
Plaintext
Raw Normal View History

2020-12-07 12:26:52 +01:00
#!/bin/bash
set -e
# check author has added themselves to CONTRIBUTORS
2020-12-16 02:59:07 +01:00
echo "--- Checking CONTRIBUTORS"
.buildkite/linux/check_contributors
2020-12-07 12:26:52 +01:00
BAZEL="bazel --output_user_root=/state/bazel --output_base=/state/bazel/anki"
BUILDARGS="--config=ci --disk_cache=/state/bazel/disk --repository_cache=/state/bazel/repo"
2020-12-07 12:26:52 +01:00
echo "+++ Building and testing"
2020-12-07 12:26:52 +01:00
# move existing node_modules into tree
test -e /state/node_modules && mv /state/node_modules .
2020-12-07 12:26:52 +01:00
2021-12-20 08:41:13 +01:00
$BAZEL test $BUILDARGS ... //rslib/linkchecker
2020-12-07 12:26:52 +01:00
2021-04-13 15:08:57 +02:00
echo "--- Running lints"
python scripts/copyright_headers.py
2020-12-16 02:59:07 +01:00
echo "--- Cleanup"
2020-12-07 12:26:52 +01:00
# if tests succeed, back up node_modules folder
mv node_modules /state/