diff options
Diffstat (limited to 'tests/release.testscript')
-rw-r--r-- | tests/release.testscript | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/release.testscript b/tests/release.testscript index 8089e99..494cf66 100644 --- a/tests/release.testscript +++ b/tests/release.testscript @@ -24,13 +24,16 @@ clone_root_rep = [cmdline] cp --no-cleanup -pr $~/prj.git ./ &prj.git/*** # Prepare the local repository. # # Set the origin repository location as a relative path, so we can copy the -# local/remote repository pair into the testscript scopes. +# local/remote repository pair into the testscript scopes. Also disable hooks, +# which can potentially be broken, not to interfere with the git commands +# (commit, etc) which bdep-release calls internally. # gp = [cmdline] $g -C prj log = [cmdline] $gp log '--pretty=format:"%d %s"' +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' ++$gp config core.hooksPath '' +$gp remote add origin ../prj.git +$gp add '*' +$gp commit -m 'Create' --no-verify @@ -1060,7 +1063,7 @@ new += --vcs git,branch=master 2>- % \(HEAD -> master, .*\) Create% EOO - $gp commit -a -m 'Release version'; + $gp commit -a -m 'Release version' --no-verify; $* --tag; $* --open --no-commit; @@ -1115,9 +1118,10 @@ new += --vcs git,branch=master 2>- +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' + +$gp config core.hooksPath '' +$gp remote add origin ../prj.git +$gp add '*' - +$gp commit -m 'Create' + +$gp commit -m 'Create' --no-verify +$gp push --set-upstream origin master test.options += -q @@ -1134,6 +1138,8 @@ new += --vcs git,branch=master 2>- { $clone_repos; + # Release the single libprj package rather than the whole prj project. + # test.arguments = $regex.apply($test.arguments, '^(-d|prj)$', ''); $* -d prj/libprj 2>>EOE; @@ -1162,6 +1168,8 @@ new += --vcs git,branch=master 2>- { $clone_repos; + # Release the single libprj package rather than the whole prj project. + # $* libprj 2>>EOE; warning: following project packages not being released: prj EOE @@ -1188,6 +1196,9 @@ new += --vcs git,branch=master 2>- { $clone_repos; + # Release the whole project, but deduce the project directory from the + # current working directory which is a package directory. + # test.arguments = $regex.apply($test.arguments, '^(-d|prj)$', ''); env -c prj/libprj -- $*; |