mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-20 08:18:09 +00:00
20 lines
625 B
Bash
20 lines
625 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Automatically update all SourceCred snapshot data.
|
||
|
set -eu
|
||
|
|
||
|
toplevel="$(git -C "$(dirname "$0")" rev-parse --show-toplevel)"
|
||
|
cd "${toplevel}"
|
||
|
|
||
|
yarn backend
|
||
|
echo "Updating for sharness/test_load_example_github.t"
|
||
|
(cd sharness; UPDATE_SNAPSHOT=1 ./test_load_example_github.t -l)
|
||
|
echo "Updating git/loadRepositoryTest.sh"
|
||
|
./src/plugins/git/loadRepositoryTest.sh -u
|
||
|
echo "Updating github/fetchGithubOrgTest.sh"
|
||
|
./src/plugins/github/fetchGithubOrgTest.sh -u --no-build
|
||
|
echo "Updating github/fetchGithubRepoTest.sh"
|
||
|
./src/plugins/github/fetchGithubRepoTest.sh -u --no-build
|
||
|
echo "Updating Jest snapshots"
|
||
|
yarn unit -u
|