mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
ci: the Linux gate builds the real-file corpus tests in and its shards fetch the corpora
Part of #15711
This commit is contained in:
1 parent
d5e182a725
commit
f08d65ac69
3 files changed
+33
No files matched your search
@@ -21,6 +21,12 @@ cargo nextest run --archive-file "$NEXTEST_ARCHIVE_FILE" --workspace-remap . --e
|
||||
xtask=("$archive/target/debug/xtask" ci tests --from "$archive" --shard "$GATE_SHARD")
|
||||
case "$(uname -s)" in MINGW* | MSYS* | CYGWIN*) xtask=("$archive/target/debug/xtask.exe" ci tests --from "$archive" --shard "$GATE_SHARD") ;; esac
|
||||
|
||||
# The gate builds the real-file corpus tests in (PHOTOCRAFT_CORPUS_TESTS=1, xtask's CORPUS_FEATURES):
|
||||
# they fail when the corpus is missing, so a shard fetches it first (pinned commits, sha256-verified).
|
||||
if [ "${PHOTOCRAFT_CORPUS_TESTS:-}" = 1 ]; then
|
||||
"${xtask[0]}" corpus --all
|
||||
fi
|
||||
|
||||
case "${1:-}" in
|
||||
"") exec "${xtask[@]}" ;;
|
||||
--gpu-shard)
|
||||
|
||||
Reference in new issue
Block a user