Permalink
Browse files

Having fun with travis ci. #4

  • Loading branch information...
1 parent 3c179bf commit 572bd3a94ac8f70b2bacc842ae766c48c19cc025 @iafonov committed Jul 13, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 .chef/bootstrap/server_ubuntu_1_9_3.erb
  2. +1 −0 .travis.yml
  3. +3 −1 Rakefile
@@ -6,7 +6,7 @@ export DEBIAN_FRONTEND=noninteractive
set -x
install_1_9_3() {
- if ruby -v | grep -q "1.9.3p194" >/dev/null ; then
+ if ruby -v | grep -q "1.9.3" >/dev/null ; then
printf "Ruby 1.9.3 is already installed skipping...\n"
return
fi
View
@@ -1,6 +1,7 @@
language: ruby
bundler_args: --binstubs
before_install:
+ - sudo apt-get install ruby1.9.1 ruby1.9.1-dev
- rm -rf ~/.ssh
- ssh-keygen -t rsa -N "" -f ~/.ssh/identity
- cat ~/.ssh/identity.pub > ~/.ssh/authorized_keys
View
@@ -27,7 +27,9 @@ namespace :test do
task :default => :self_bootstrap
task :self_bootstrap do
+ require 'socket'
+
system("ssh-add ~/.ssh/identity")
- system("./bin/knife bootstrap localhost --ssh-user #{ENV['USER']} --distro travis --sudo")
+ system("./bin/knife bootstrap localhost --ssh-user #{ENV['USER']} --distro server_ubuntu_1_9_3 --node-name '#{Socket.gethostname}' --sudo")
end
end

0 comments on commit 572bd3a

Please sign in to comment.