diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-14 12:08:18 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-14 12:08:18 +0200 |
commit | 6c6fa3c97011e6eef0792665f4942b36f7091d75 (patch) | |
tree | 34bc27c43e19868ffe7d8b6897d08b6fb1426a74 | |
parent | ffc9c5cabcd45bf316af44a04327bd37ff788a17 (diff) | |
download | bumper-6c6fa3c97011e6eef0792665f4942b36f7091d75.tar.gz |
Set up PGP test key for use in scenario
-rw-r--r-- | bumper.yarn | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bumper.yarn b/bumper.yarn index 68174c5..3cfa081 100644 --- a/bumper.yarn +++ b/bumper.yarn @@ -44,6 +44,10 @@ project called `foo`, and we'll make a release 3.2 of it. SCENARIO release a project +We will use a PGP test key for signing tags. + + GIVEN a PGP key with id AA8CD13C + The Foo project consists of a main program, which uses a little Python package where all the real code is, and where the version number is also stored. @@ -70,6 +74,16 @@ for Bumper. [yarn]: http://liw.fi/cmdtest/ + IMPLEMENTS GIVEN a PGP key with id (\S+) + import os, shutil, cliapp, yarnstep + keyid = yarnstep.get_next_match() + src = yarnstep.srcdir('dot-gnupg') + dst = yarnstep.datadir('HOME/.gnupg') + shutil.copytree(src, dst) + cliapp.runcmd( + ['gpg', '--list-keys', keyid], + cwd=os.environ['HOME']) + IMPLEMENTS GIVEN Python project (\S+), version controlled by git import os, cliapp, yarnstep project = yarnstep.get_next_match() |