Skip to content

Instantly share code, notes, and snippets.

@mariushoch
Last active February 12, 2022 21:05
Show Gist options
  • Save mariushoch/203e7b65b1d6059cdaaf6e824d9eaccf to your computer and use it in GitHub Desktop.
Save mariushoch/203e7b65b1d6059cdaaf6e824d9eaccf to your computer and use it in GitHub Desktop.
Smoke tests for the Wikibase entity dump generation
MAILTO=foo@bar.invalid
45 10 * * 4 nice -n19 bash $HOME/bin/wikibase-dump-generation-smoke-tests
#!/bin/bash
set -e
cd "$HOME/wikidata-dump-generation-smoke-tests"
export https_proxy=http://webproxy:8080
git fetch
if [[ ! "$(git log HEAD..origin/main)" == "" ]]; then
echo "New commits, please rebase:"
git log --format=oneline HEAD..origin/main
fi
echo
echo
./wikidata-dump-generation-smoke-tests --test-wikidata
./wikidata-dump-generation-smoke-tests --test-commons
echo
echo "Success!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment