mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
65a1040fe8
New list is tahoe-dev@lists.tahoe-lafs.org, list info page is at https://lists.tahoe-lafs.org/mailman/listinfo/tahoe-dev, and list archives are now at https://lists.tahoe-lafs.org/pipermail/tahoe-dev/. Sadly message numbers in list archive seem to have changed, so updating references to list archive is not as simple as prefixing `list.`
35 lines
775 B
Bash
Executable File
35 lines
775 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
set -eo pipefail
|
|
|
|
TAHOE="${PWD}"
|
|
git clone -b gh-pages git@github.com:tahoe-lafs/tahoe-depgraph.git
|
|
cd tahoe-depgraph
|
|
|
|
# Generate the maybe-changed data.
|
|
python "${TAHOE}"/misc/python3/tahoe-depgraph.py "${TAHOE}"
|
|
|
|
if git diff-index --quiet HEAD; then
|
|
echo "Declining to commit without any changes."
|
|
exit 0
|
|
fi
|
|
|
|
git config user.name 'Build Automation'
|
|
git config user.email 'tahoe-dev@lists.tahoe-lafs.org'
|
|
|
|
git add tahoe-deps.json tahoe-ported.json
|
|
git commit -m "\
|
|
Built from ${CIRCLE_REPOSITORY_URL}@${CIRCLE_SHA1}
|
|
|
|
tahoe-depgraph was $(git rev-parse HEAD)
|
|
"
|
|
|
|
if [ "${CIRCLE_BRANCH}" != "master" ]; then
|
|
echo "Declining to update dependency graph for non-master build."
|
|
exit 0
|
|
fi
|
|
|
|
# Publish it on GitHub.
|
|
git push -q origin gh-pages
|