forked from tknerr/vagrant-managed-servers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (24 loc) · 671 Bytes
/
Rakefile
File metadata and controls
27 lines (24 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = [].tap do |a|
a.push('--color')
a.push('--format doc')
end.join(' ')
end
# Default task is to run the unit tests
task :default => "spec"
desc "runs the acceptance \"test\" as described in README"
task :acceptance do
['linux', 'windows'].each do |os|
begin
sh "vagrant up local_#{os}"
sh "vagrant up managed_#{os} --provider=managed"
sh "vagrant provision managed_#{os}"
sh "vagrant reload managed_#{os}"
ensure
sh "vagrant destroy -f managed_#{os}"
sh "vagrant destroy -f local_#{os}"
end
end
end