Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into 3914.faster-rsa-tests
- Loading branch information
Showing
15 changed files
with
367 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Run a command, enabling cache writes to cachix if possible. The command is | ||
# accepted as a variable number of positional arguments (like argv). | ||
function cache_if_able() { | ||
# The `cachix watch-exec ...` does our cache population. When it sees | ||
# something added to the store (I guess) it pushes it to the named cache. | ||
# | ||
# We can only *push* to it if we have a CACHIX_AUTH_TOKEN, though. | ||
# in-repo jobs will get this from CircleCI configuration but jobs from | ||
# forks may not. | ||
echo "Building PR from user/org: ${CIRCLE_PROJECT_USERNAME}" | ||
if [ -v CACHIX_AUTH_TOKEN ]; then | ||
echo "Cachix credentials present; will attempt to write to cache." | ||
cachix watch-exec "${CACHIX_NAME}" -- "$@" | ||
else | ||
# If we're building a from a forked repository then we're allowed to | ||
# not have the credentials (but it's also fine if the owner of the | ||
# fork supplied their own). | ||
if [ "${CIRCLE_PROJECT_USERNAME}" == "tahoe-lafs" ]; then | ||
echo "Required credentials (CACHIX_AUTH_TOKEN) are missing." | ||
return 1 | ||
else | ||
echo "Cachix credentials missing; will not attempt cache writes." | ||
"$@" | ||
fi | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.