Skip to content

Commit

Permalink
Update Travis config.
Browse files Browse the repository at this point in the history
* Properly generate test_server.yml
* Use a secondary Gemfile instead of ENV vars.
  • Loading branch information
seancribbs committed Jan 12, 2012
1 parent 5e89166 commit 123f7b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
@@ -1,9 +1,12 @@
env:
- "RIAK_BIN_DIR=/usr/sbin"
- "RIAK_BIN_DIR=/usr/sbin RAILS31=true"
gemfiles:
- Gemfile
- Gemfile.rails31
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby
before_script: ! 'echo "root: /tmp/.riaktest\nsource: $RIAK_BIN_DIR" > spec/support/test_server.yml; ulimit -n 2048'
before_script:
- ! 'echo "root: /tmp/.riaktest" > spec/support/test_server.yml'
- ! 'echo "source: /usr/sbin" >> spec/support/test_server.yml'
- "ulimit -n 2048"
6 changes: 0 additions & 6 deletions Gemfile
Expand Up @@ -2,12 +2,6 @@ source :rubygems

gemspec

if ENV['RAILS31']
gem 'activemodel', '~> 3.1.0'
else
gem 'activemodel', '~> 3.0.10'
end

if ENV['TRAVIS']
# Once the APIs are stable, this should be removed
gem 'riak-client', :git => "git://github.com/basho/riak-ruby-client.git"
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.rails31
@@ -0,0 +1,3 @@
gem 'activemodel', '~> 3.1.0'

instance_eval File.read(File.expand_path('../Gemfile', __FILE__))

0 comments on commit 123f7b6

Please sign in to comment.