implement dryrun mode in myrepo.commands.build
add a test case of dryrun mode for myrepo.commands.build