solrmarc_wrapper 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -1
- data/lib/solrmarc_wrapper/version.rb +1 -1
- data/lib/tasks/jetty.rake +2 -2
- data/lib/tasks/solrmarc.rake +1 -1
- data/lib/tasks/spec.rake +3 -3
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/tasks/jetty.rake
CHANGED
@@ -4,7 +4,7 @@ namespace :sm_wrap do
|
|
4
4
|
namespace :jetty do
|
5
5
|
|
6
6
|
desc "Modify test jetty solr to be multicore"
|
7
|
-
task :
|
7
|
+
task :config => ['sm_wrap:solrmarc:setup_test_jetty'] do
|
8
8
|
|
9
9
|
# copy the solr.xml file for multi-core to test jetty solr
|
10
10
|
jetty_solr_dir = "solrmarc/test/jetty/solr"
|
@@ -32,7 +32,7 @@ namespace :sm_wrap do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
desc "Copies the SOLR config files and starts up the test-jetty instance"
|
35
|
-
task :
|
35
|
+
task :load => [:config, 'jetty:start']
|
36
36
|
|
37
37
|
end
|
38
38
|
end
|
data/lib/tasks/solrmarc.rake
CHANGED
@@ -7,7 +7,7 @@ namespace :sm_wrap do
|
|
7
7
|
ant '-f solrmarc/build.xml dist_site'
|
8
8
|
end
|
9
9
|
|
10
|
-
desc "run ant target to set up testing jetty
|
10
|
+
desc "run ant target to set up testing jetty per straight solrmarc"
|
11
11
|
task :setup_test_jetty do
|
12
12
|
ant '-f solrmarc/build.xml test_clean_site'
|
13
13
|
ant '-f solrmarc/build.xml site_setup_test_jetty'
|
data/lib/tasks/spec.rake
CHANGED
@@ -3,7 +3,7 @@ require 'rspec/core/rake_task'
|
|
3
3
|
namespace :sm_wrap do
|
4
4
|
|
5
5
|
desc "Run all specs, with jetty instance running"
|
6
|
-
task :rspec_wrapped => ['sm_wrap:solrmarc:ant_dist_site', 'sm_wrap:jetty:
|
6
|
+
task :rspec_wrapped => ['sm_wrap:solrmarc:ant_dist_site', 'sm_wrap:jetty:config'] do
|
7
7
|
test_jetty_dir = File.expand_path(File.dirname(__FILE__) + '../../../solrmarc/test/jetty')
|
8
8
|
require 'jettywrapper'
|
9
9
|
jetty_params = Jettywrapper.load_config.merge({
|
@@ -16,12 +16,12 @@ namespace :sm_wrap do
|
|
16
16
|
error = Jettywrapper.wrap(jetty_params) do
|
17
17
|
`sh ./spec/scripts/curl_empty_test_solr.sh`
|
18
18
|
`sh ./spec/scripts/curl_add_bare666_to_test.sh`
|
19
|
-
Rake::Task['sm_wrap:
|
19
|
+
Rake::Task['sm_wrap:rspec_plain'].invoke
|
20
20
|
end
|
21
21
|
raise "TEST FAILURES: #{error}" if error
|
22
22
|
end
|
23
23
|
|
24
|
-
RSpec::Core::RakeTask.new(:
|
24
|
+
RSpec::Core::RakeTask.new(:rspec_plain) do |spec|
|
25
25
|
spec.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
26
26
|
end
|
27
27
|
|