cul_scv_hydra 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/tasks/cul_hydra_dev.rake +33 -28
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDVmYWExNmFiMzM4ZTJiZDRkYzI4MjNkNjhmNzA4ODBjYzI2OTJiMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTA2YmI3ZGYxZTkzYmViOWQyNTgwOGI5ZGVlZjJmNjY3ZDJhZjgzNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmUzMmRiYTZjOGVkNDJjMjdlODVjNjk4NjJhZjVkNWQ2NWVjOWY2N2Y0ZjVj
|
10
|
+
ODMyM2Q2Y2RkZGJkMDMxZDE3NTA5ZWVlMDE4MmZkOWI5MjU2OGI1YjZkOTQw
|
11
|
+
N2EzNjczNTBkMmFhMjUyOTgzMTExNjk1ODlkOTcwYWQwNmFmMmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjJmYzMyOTVlOWY5NWQ5N2M3YjYwYjEzY2I5NDY0OWEyOWEzYjRhZWJlOTU4
|
14
|
+
MTljNGE5YzdjZTc2MmJlZTYzZWUxNzZmMDRiNmQ3NWNhODk1Y2FkMDU4YTg3
|
15
|
+
MDRkYjYyMTY0N2MzNzg5NGIyNjVmYWQ3OWZmNDE4Njk4ZDM5MGI=
|
@@ -5,39 +5,44 @@ JETTY_ZIP_BASENAME = 'master'
|
|
5
5
|
Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip"
|
6
6
|
|
7
7
|
namespace :cul_hydra do
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
begin
|
9
|
+
require 'rspec/core/rake_task'
|
10
|
+
RSpec::Core::RakeTask.new(:rspec) do |spec|
|
11
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
12
|
+
spec.pattern += FileList['spec/*_spec.rb']
|
13
|
+
spec.rspec_opts = ['--backtrace'] if ENV['CI']
|
14
|
+
end
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
17
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
18
|
+
spec.pattern += FileList['spec/*_spec.rb']
|
19
|
+
spec.rcov = true
|
20
|
+
end
|
21
|
+
rescue Exception => e
|
22
|
+
puts "Exception creating rspec rake tasks: check for development environment?"
|
23
|
+
puts e
|
19
24
|
end
|
20
25
|
|
21
|
-
desc "CI build"
|
22
|
-
task :ci do
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
desc "CI build"
|
27
|
+
task :ci do
|
28
|
+
ENV['environment'] = "test"
|
29
|
+
#Rake::Task["active_fedora:configure_jetty"].invoke
|
30
|
+
jetty_params = Jettywrapper.load_config
|
31
|
+
error = Jettywrapper.wrap(jetty_params) do
|
32
|
+
Rake::Task["cul_scv_hydra:cmodel:reload_all"].invoke
|
33
|
+
Rake::Task['cul_hydra:coverage'].invoke
|
34
|
+
end
|
35
|
+
raise "test failures: #{error}" if error
|
29
36
|
end
|
30
|
-
raise "test failures: #{error}" if error
|
31
|
-
end
|
32
37
|
|
33
|
-
desc "Execute specs with coverage"
|
34
|
-
task :coverage do
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
+
desc "Execute specs with coverage"
|
39
|
+
task :coverage do
|
40
|
+
# Put spec opts in a file named .rspec in root
|
41
|
+
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
|
42
|
+
ENV['COVERAGE'] = 'true' unless ruby_engine == 'jruby'
|
38
43
|
|
39
|
-
|
40
|
-
|
41
|
-
end
|
44
|
+
# Rake::Task["active_fedora:fixtures"].invoke
|
45
|
+
Rake::Task["cul_hydra:rspec"].invoke
|
46
|
+
end
|
42
47
|
|
43
48
|
end
|