Skip to content

Commit

Permalink
Minor alterations
Browse files Browse the repository at this point in the history
Add VMware Fusion as a provider for Vagrant
Streamline Rakefile tasks
  • Loading branch information
townsen committed Jul 25, 2014
1 parent e60b80a commit db58fc3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ appear at the top.

* Add your entries here, remember to credit yourself however you want to be
credited!
* Add vmware_fusion Vagrant provider. Nick Townsend

## 1.5.1

Expand Down
14 changes: 5 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
require 'bundler/gem_tasks'
require 'rake/testtask'

task :default => :test

desc "Run all tests"
task :test => ['test:units', 'test:functional']

namespace :test do

Rake::TestTask.new(:units) do |t|
Expand All @@ -15,17 +20,8 @@ namespace :test do
t.test_files = FileList['test/functional/**/test*.rb']
end

task :test do
Rake::Task['test:units'].execute
Rake::Task['test:functional'].execute
end

task default: :test

end

task :default => 'test:default'

Rake::Task["test:functional"].enhance do
warn "Remember there are still some VMs running, kill them with `vagrant halt` if you are finished using them."
end
7 changes: 6 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'precise64'
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provider "vmware_fusion" do |vmf|
vmf.box_url = "http://files.vagrantup.com/precise64_vmware.box"
end
config.vm.provider "virtualbox" do |vb|
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
end

json_config_path = File.join("test", "boxes.json")
list = File.open(json_config_path).read
Expand Down

0 comments on commit db58fc3

Please sign in to comment.