Rakefile in faster_path-0.2.2 vs Rakefile in faster_path-0.2.3
- old
+ new
@@ -22,10 +22,17 @@
rescue Errno::ENOENT => _
puts "\nNo Gemfile.lock"
end
end
+desc "Generate Contriburs.md Manifest"
+task :contrib do
+ puts "Generating Contriburs.md Manifest"
+ exec "printf '# Contributors\n
+' > Contributors.md;git shortlog -s -n -e | sed 's/^......./- /' >> Contributors.md"
+end
+
desc "Add libruby to deps"
task :libruby_release do
filename = RbConfig::CONFIG["LIBRUBY_ALIASES"].split(" ").first
libfile = File.join(RbConfig::CONFIG["libdir"], filename)
deps = "target/release/deps"
@@ -96,24 +103,34 @@
t.libs << "test"
t.libs << "lib"
t.test_files = FileList['test/**/*_test.rb']
end
-task test: [:cargo, :minitest, :lint, :pbench] do |_t|
+task :init_mspec do |_t|
+ if Dir.open('spec/mspec').entries.-([".", ".."]).empty?
+ `git submodule init`
+ `git submodule update`
+ end
+end
+
+task test: [:cargo, :minitest, :lint, :pbench, :init_mspec] do |_t|
exec 'spec/mspec/bin/mspec --format spec core/file/basename core/file/extname core/file/dirname library/pathname'
end
desc "Full mspec results w/o encoding"
-task :mspec_full do
+task mspec_full: :init_mspec do
exec %(bash -c "TEST_MONKEYPATCHES=true WITH_REGRESSION=true spec/mspec/bin/mspec --format spec core/file/basename core/file/extname core/file/dirname library/pathname")
end
desc "Full mspec results w/ encoding"
-task :mspec_encoding_full do
+task mspec_encoding_full: :init_mspec do
exec %(bash -c "ENCODING=1 TEST_MONKEYPATCHES=true WITH_REGRESSION=true mspec --format spec core/file/basename core/file/extname core/file/dirname library/pathname")
end
Rake::TestTask.new(bench: :build_lib) do |t|
+ if ENV['GRAPH']
+ `bundle install`
+ end
t.libs = %w[lib test]
t.pattern = 'test/**/*_benchmark.rb'
end
Rake::TestTask.new(pbench: :build_lib) do |t|