Permalink
Browse files

Configuring main repo token as well as forked repo

  • Loading branch information...
1 parent aca2a9b commit c2519f34b5c16cfadb327c3abe70f309479f64ba @winton committed Dec 29, 2011
Showing with 11 additions and 3 deletions.
  1. +2 −1 features/config.example.yml
  2. +9 −2 features/steps/gitcycle_steps.rb
@@ -1,8 +1,9 @@
-gitcycle: # gitcycle api token
lighthouse:
account: # lighthouse subdomain
project: # lighthouse project id integer
token: # lighthouse api token hash
owner: # user of parent repo
repo: # repo name
+token_dev: # gitcycle api token (dev)
+token_qa: # gitcycle api token (qa)
user: # user of forked repo
@@ -114,7 +114,13 @@ def run_gitcycle(cmd, interactive=false)
"setup",
config['user'],
config['repo'],
- config['gitcycle']
+ config['token_dev']
+ ].join(' ')
+ run_gitcycle [
+ "setup",
+ config['owner'],
+ config['repo'],
+ config['token_qa']
].join(' ')
end
@@ -151,7 +157,8 @@ def run_gitcycle(cmd, interactive=false)
Then /^gitcycle\.yml should be valid$/ do
gitcycle = YAML.load(File.read(GITCYCLE))
- gitcycle[config['user']][config['repo']].should == config['gitcycle']
+ gitcycle[config['user']][config['repo']].should == config['token_dev']
+ gitcycle[config['owner']][config['repo']].should == config['token_qa']
end
Then /^output includes \"([^\"]*)"$/ do |expected|

0 comments on commit c2519f3

Please sign in to comment.