Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Having fun with travis ci. #4

  • Loading branch information...
commit 572bd3a94ac8f70b2bacc842ae766c48c19cc025 1 parent 3c179bf
Igor Afonov authored
2  .chef/bootstrap/server_ubuntu_1_9_3.erb
@@ -6,7 +6,7 @@ export DEBIAN_FRONTEND=noninteractive
6 6 set -x
7 7
8 8 install_1_9_3() {
9   - if ruby -v | grep -q "1.9.3p194" >/dev/null ; then
  9 + if ruby -v | grep -q "1.9.3" >/dev/null ; then
10 10 printf "Ruby 1.9.3 is already installed skipping...\n"
11 11 return
12 12 fi
1  .travis.yml
... ... @@ -1,6 +1,7 @@
1 1 language: ruby
2 2 bundler_args: --binstubs
3 3 before_install:
  4 + - sudo apt-get install ruby1.9.1 ruby1.9.1-dev
4 5 - rm -rf ~/.ssh
5 6 - ssh-keygen -t rsa -N "" -f ~/.ssh/identity
6 7 - cat ~/.ssh/identity.pub > ~/.ssh/authorized_keys
4 Rakefile
@@ -27,7 +27,9 @@ namespace :test do
27 27 task :default => :self_bootstrap
28 28
29 29 task :self_bootstrap do
  30 + require 'socket'
  31 +
30 32 system("ssh-add ~/.ssh/identity")
31   - system("./bin/knife bootstrap localhost --ssh-user #{ENV['USER']} --distro travis --sudo")
  33 + system("./bin/knife bootstrap localhost --ssh-user #{ENV['USER']} --distro server_ubuntu_1_9_3 --node-name '#{Socket.gethostname}' --sudo")
32 34 end
33 35 end

0 comments on commit 572bd3a

Please sign in to comment.
Something went wrong with that request. Please try again.