lib/coveralls/configuration.rb in coveralls-0.5.5 vs lib/coveralls/configuration.rb in coveralls-0.5.6
- old
+ new
@@ -11,9 +11,12 @@
yml = self.yaml_config
if yml
config[:configuration] = yml
config[:repo_token] = yml['repo_token'] || yml['repo_secret_token']
end
+ if ENV['COVERALLS_REPO_TOKEN']
+ config[:repo_token] = ENV['COVERALLS_REPO_TOKEN']
+ end
if ENV['TRAVIS']
config[:service_job_id] = ENV['TRAVIS_JOB_ID']
config[:service_name] = (yml ? yml['service_name'] : nil) || 'travis-ci'
end
if ENV["COVERALLS_RUN_LOCALLY"]
\ No newline at end of file