зеркало из https://github.com/Azure/vagrant-azure.git
add default rake for tests and update gemspec
This commit is contained in:
Родитель
96da70c61d
Коммит
4d42a3eb70
9
Gemfile
9
Gemfile
|
@ -10,10 +10,5 @@ group :development do
|
||||||
# We depend on Vagrant for development, but we don't add it as a
|
# We depend on Vagrant for development, but we don't add it as a
|
||||||
# gem dependency because we expect to be installed within the
|
# gem dependency because we expect to be installed within the
|
||||||
# Vagrant environment itself using `vagrant plugin`.
|
# Vagrant environment itself using `vagrant plugin`.
|
||||||
gem 'vagrant', git: 'git://github.com/mitchellh/vagrant.git', tag: 'v1.7.4'
|
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
||||||
gem 'dotenv'
|
end
|
||||||
end
|
|
||||||
|
|
||||||
group :plugins do
|
|
||||||
gem 'vagrant-azure', path: '.'
|
|
||||||
end
|
|
8
Rakefile
8
Rakefile
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
$stdout.sync = true
|
$stdout.sync = true
|
||||||
$stderr.sync = true
|
$stderr.sync = true
|
||||||
|
@ -11,3 +12,10 @@ $stderr.sync = true
|
||||||
Dir.chdir(File.expand_path('../', __FILE__))
|
Dir.chdir(File.expand_path('../', __FILE__))
|
||||||
|
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
|
# Install the `spec` task so that we can run tests.
|
||||||
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
||||||
|
t.rspec_opts = '--order defined'
|
||||||
|
end
|
||||||
|
# Default task is to run the unit tests
|
||||||
|
task :default => :spec
|
||||||
|
|
|
@ -8,6 +8,7 @@ require 'vagrant-azure/version'
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'vagrant-azure'
|
s.name = 'vagrant-azure'
|
||||||
s.version = VagrantPlugins::Azure::VERSION
|
s.version = VagrantPlugins::Azure::VERSION
|
||||||
|
s.platform = Gem::Platform::RUBY
|
||||||
s.authors = %w(Azure)
|
s.authors = %w(Azure)
|
||||||
s.description = 'Enable Vagrant to manage machines in Microsoft Azure.'
|
s.description = 'Enable Vagrant to manage machines in Microsoft Azure.'
|
||||||
s.summary = 'Enable Vagrant to manage Windows and Linux machines in Microsoft Azure.'
|
s.summary = 'Enable Vagrant to manage Windows and Linux machines in Microsoft Azure.'
|
||||||
|
@ -18,15 +19,15 @@ Gem::Specification.new do |s|
|
||||||
s.bindir = 'bin'
|
s.bindir = 'bin'
|
||||||
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
||||||
|
|
||||||
s.add_runtime_dependency 'azure_mgmt_resources', '~>0.2.1'
|
s.add_runtime_dependency 'azure_mgmt_resources', '~>0.8.0'
|
||||||
s.add_runtime_dependency 'azure_mgmt_compute', '~>0.2.1'
|
s.add_runtime_dependency 'azure_mgmt_compute', '~>0.8.0'
|
||||||
s.add_runtime_dependency 'azure_mgmt_network', '~>0.2.1'
|
s.add_runtime_dependency 'azure_mgmt_network', '~>0.8.0'
|
||||||
s.add_runtime_dependency 'azure_mgmt_storage', '~>0.2.1'
|
s.add_runtime_dependency 'azure_mgmt_storage', '~>0.8.0'
|
||||||
s.add_runtime_dependency 'haikunator', '~>1.1'
|
s.add_runtime_dependency 'haikunator', '~>1.1'
|
||||||
|
|
||||||
s.add_development_dependency 'bundler', '~>1.9'
|
s.add_development_dependency 'bundler', '~>1.9'
|
||||||
s.add_development_dependency 'rake', '~>11.1'
|
s.add_development_dependency 'rake', '~>11.1'
|
||||||
s.add_development_dependency 'rspec', '~>3.4'
|
s.add_development_dependency 'rspec', '~>3.4'
|
||||||
s.add_development_dependency 'simplecov', '~>0.11.2'
|
s.add_development_dependency 'simplecov', '~>0.11'
|
||||||
s.add_development_dependency 'coveralls', '~>0.8'
|
s.add_development_dependency 'coveralls', '~>0.8'
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче