Sha256: b5f8ddabb6d6548935b149c2bc1b1af0f5665cca8d3037bd50c54f1075aa60a5
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
module Dev module Cmd class Test < Array def refresh strip_auto_entries if(Dir.glob("**/*.spec").count > 0) #if DEV.has_key?(:file_count) && DEV[:file_count].has_key?(:spec) && DEV[:file_count][:spec] > 0 rspec_cmd='rspec --pattern="**/*.spec"' self << "{:cmd=>'#{rspec_cmd}', :auto=>true}" end Dir.glob("*.gemspec").each { |gs| self << "{:cmd=>'gem install ./#{gs.gsub('.gemspec','')}-#{DEV[:version]}.gem', :capture_output=>true, :auto=>true}" } Dir.glob("*.{Test.csproj,Features.csproj}").each { |cs| dll_name="bin/x86/Release/#{File.basename(cs,'.csproj')}.dll" self << "\"<paths,nunit>\" /nologo #{dll_name} /xml:#{dll_name}.nunit-results.xml" if RUBY_PLATFORM.include?("w32") self << "mono \"<paths,nunit>\" #{dll_name}" if !RUBY_PLATFORM.include?("w32") } end end # class Test end # module Cmd end # module Dev
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev-1.0.148 | lib/dev/cmd/Test.rb |
dev-1.0.147 | lib/dev/cmd/Test.rb |