Created
May 4, 2010 16:32
Revisions
-
jeroenvandijk revised this gist
May 22, 2010 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,8 +18,7 @@ git clone git://github.com/rails/rails.git echo 'source :rubygems group :virtualbox do gem "vagrant", "0.3.4" end' > Gemfile bundle install -
jeroenvandijk revised this gist
May 8, 2010 . 3 changed files with 49 additions and 43 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,43 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ # These commands will help you setup the Rails test environment without problems # # MAKE SURE YOU HAVE VIRTUAL BOX INSTALLED http://www.virtualbox.org/wiki/Downloads # # Copy paste all of following commands in your normal terminal and the following things will happen: # - rails_test_box dir is created # - rails master branch is checkout in the dir rails # - A Gemfile is created and all the gems to run the virtualbox are installed using bundler # - The rails vagrant box is downloaded and added to your vagrant boxes # - A Vagrantfile is created for vagrant # - The rails box will be activated, meaning it will be copied from your vagrant boxes directory and started # - The 'vagrant ssh' makes you go into the box from now on all the commands are in the virtualbox until you type 'exit' gem install bundler mkdir rails_test_box cd rails_test_box git clone git://github.com/rails/rails.git echo 'source :rubygems group :virtualbox do gem "vagrant", "0.3.0" gem "virtualbox", "0.6.0" end' > Gemfile bundle install bundle exec vagrant box add rails_test_box http://files.cookiestack.com/rails_test_env.box echo 'Vagrant::Config.run do |config| config.vm.share_folder("rails", "rails", "rails") config.vm.box = "rails_test_box" end' > Vagrantfile bundle exec vagrant up bundle exec vagrant ssh # Now you are in the Virtualbox. Start running the tests! cd rails bundle install rake This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # To run the tests for 1.9.1-p376 do the following in the VirtualBox # If you have logged out, you can log into the box again with 'vagrant ssh' # (The bundle install only needs to be run the first time) cd ~/rails rvm 1.9.1-p376 bundle install rake -
jeroenvandijk revised this gist
May 6, 2010 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # MAKE SURE YOU HAVE VIRTUAL BOX INSTALLED http://www.virtualbox.org/wiki/Downloads # # Copy paste this file in your terminal # The following will create a dir which contains the rails repo. # You can start edit this later on. It will also create a Gemfile and a Vagrantfile. -
jeroenvandijk revised this gist
May 5, 2010 . 1 changed file with 13 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,8 @@ # Copy paste this file in your terminal # The following will create a dir which contains the rails repo. # You can start edit this later on. It will also create a Gemfile and a Vagrantfile. # It will run bundle and it will # download and activate the virtualbox that contains # everything you need to start # testing. mkdir rails_test_box cd rails_test_box @@ -12,7 +16,7 @@ The following will create a dir which contains the rails repo. You can start edi bundle install bundle exec vagrant box add rails_test_box http://files.cookiestack.com/rails_test_env.box echo 'Vagrant::Config.run do |config| config.vm.share_folder("rails", "rails", "rails") @@ -22,13 +26,16 @@ The following will create a dir which contains the rails repo. You can start edi bundle exec vagrant up bundle exec vagrant ssh # Now you are in the Virtualbox. All you need to do now is go into the rails directory, # run bundle install and your # ready to test! If you want to test it for 1.9.1, you # have to change to it using rvm and do a bundle install again. To # summarize: cd rails bundle install # to run all tests rake # to switch to 1.9.1 use the following commands. For more options `rvm usage` rvm 1.9.1-p376 -
jeroenvandijk revised this gist
May 4, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The following will create a dir which contains the rails repo. You can start edi bundle install bundle exec vagrant add http://files.cookiestack.com/rails_test_env.box echo 'Vagrant::Config.run do |config| config.vm.share_folder("rails", "rails", "rails") -
jeroenvandijk created this gist
May 4, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ The following will create a dir which contains the rails repo. You can start edit this later on. It will also create a Gemfile and a Vagrantfile. It will run bundle and it will download and activate the virtualbox that contains everything you need to start testing. mkdir rails_test_box cd rails_test_box git clone git://github.com/rails/rails.git echo 'source :rubygems group :virtualbox do gem "vagrant", "0.3.0" gem "virtualbox", "0.6.0" end' > Gemfile bundle install bundle exec vagrant add <url here! rails_test_env.box> echo 'Vagrant::Config.run do |config| config.vm.share_folder("rails", "rails", "rails") config.vm.box = "rails_test_box" end' > Vagrantfile bundle exec vagrant up bundle exec vagrant ssh Now you are in the Virtualbox. All you need to do now is go into the rails directory, run bundle install and your ready to test! If you want to test it for 1.9.1, you have to change to it using rvm and do a bundle install again. To summarize: cd rails bundle install rake # to do all tests rvm 1.9.1-p376 # to switch to 1.9.1 and use the following commands