Skip to content

Commit

Permalink
Set API test variables to defaults in TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
erran committed Mar 1, 2015
1 parent 6550402 commit ec2e059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -9,4 +9,6 @@ addons:
code_climate:
repo_token: &codeclimate_token 6d4a51b47839a35d44ba7a899bd12e7cb4c519664cf2508724f8765210493ba2
env:
- CODECLIMATE_REPO_TOKEN: *codeclimate_token
global:
- CODECLIMATE_REPO_TOKEN: *codeclimate_token
- CI: true
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -8,6 +8,12 @@
CodeClimate::TestReporter::Formatter
]

if ENV['CI']
ENV['NEXPOSE_HOSTNAME'] = 'nexpose.local'
ENV['NEXPOSE_USERNAME'] = 'johndoe'
ENV['NEXPOSE_PASSWORD'] = 'password123'
end

VCR.configure do |config|
config.cassette_library_dir = 'spec/fixtures/cassettes'
config.filter_sensitive_data('nexpose.local') { ENV['NEXPOSE_HOSTNAME'] }
Expand Down

0 comments on commit ec2e059

Please sign in to comment.