Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Having fun with travis ci.

  • Loading branch information...
commit e2a052ba38a28b94d0a08b76239808e1b3c27b6d 1 parent 63c4fd6
@iafonov authored
Showing with 13 additions and 9 deletions.
  1. +11 −0 .travis.yml
  2. +2 −9 Rakefile
View
11 .travis.yml
@@ -0,0 +1,11 @@
+language: ruby
+bundler_args: --binstubs
+before_install:
+ - rm -rf ~/.ssh
+ - ssh-keygen -t rsa -N "" -f ~/.ssh/identity
+ - cat ~/.ssh/identity.pub > ~/.ssh/authorized_keys
+ - printf "Host *\n StrictHostKeyChecking no" > ~/.ssh/config
+ - ssh-add ~/.ssh/identity
+script: ssh-agent bash -c 'rake test:self_bootstrap'
+rvm:
+ - 1.9.3
View
11 Rakefile
@@ -24,16 +24,9 @@ namespace :deploy do
end
namespace :test do
- task :self_bootstrap do
- system("bundle install --binstubs")
- system <<-EOS
- rm -rf ~/.ssh
- ssh-keygen -t rsa -N "" -f ~/.ssh/identity
- cat ~/.ssh/identity.pub > ~/.ssh/authorized_keys
- printf "Host *\n StrictHostKeyChecking no" > ~/.ssh/config
- ssh-add ~/.ssh/identity
- EOS
+ task :default => :self_bootstrap
+ task :self_bootstrap do
system("./bin/knife bootstrap localhost --ssh-user #{ENV['USER']} --distro server_ubuntu_1_9_3 --node-name 'chef.localhost' --sudo")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.