origen 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/application.rb +0 -1
- data/config/commands.rb +11 -11
- data/config/version.rb +1 -1
- data/lib/origen/commands.rb +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b15e270740c0844ea3310d0b8b7dba5ea4e449
|
4
|
+
data.tar.gz: e1c78978a03c9f992ab549db6e53bc02364b4b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec73502e12c6e34fd2b15f5c32e9464d1b1a4e1397040af6858516c3f14343fa9b2e8f7d93be8fc041d30819ce19bce47911e0ed1017ccd43481d425960eb5b1
|
7
|
+
data.tar.gz: 6edf23f23cbfac8c770408d45478343e81ae7399d7387525a20ce3380786805da3403b27f92e04ddc663cc13061444ee6f2335d6f2b613eca082ea1d8afa33cc
|
data/config/application.rb
CHANGED
data/config/commands.rb
CHANGED
@@ -9,17 +9,10 @@ aliases ={
|
|
9
9
|
case @command
|
10
10
|
|
11
11
|
when "specs"
|
12
|
-
ARGV.unshift "spec"
|
13
12
|
require "rspec"
|
14
|
-
|
15
|
-
if RSpec::Core::Version::STRING && RSpec::Core::Version::STRING == "2.11.1"
|
16
|
-
RSpec::Core::Runner.run ARGV
|
17
|
-
else
|
18
|
-
require "rspec/autorun"
|
19
|
-
end
|
20
|
-
exit 0 # RSpec will exit 1 automatically if a test fails
|
13
|
+
exit RSpec::Core::Runner.run(['spec'])
|
21
14
|
|
22
|
-
when "examples"
|
15
|
+
when "examples", "test"
|
23
16
|
$enable_testers = true if ARGV.delete("--testers")
|
24
17
|
Origen.load_application
|
25
18
|
status = 0
|
@@ -38,6 +31,12 @@ when "examples"
|
|
38
31
|
status = 1
|
39
32
|
end
|
40
33
|
puts
|
34
|
+
if @command == "test"
|
35
|
+
Origen.app.unload_target!
|
36
|
+
require "rspec"
|
37
|
+
result = RSpec::Core::Runner.run(['spec'])
|
38
|
+
status = status == 1 ? 1 : result
|
39
|
+
end
|
41
40
|
exit status
|
42
41
|
|
43
42
|
when "regression"
|
@@ -64,8 +63,9 @@ when "make_file"
|
|
64
63
|
|
65
64
|
else
|
66
65
|
@application_commands = <<-EOT
|
67
|
-
specs Run the specs (tests), -c will enable coverage
|
68
|
-
examples Run the examples, -c will enable coverage
|
66
|
+
specs Run the specs (unit tests), -c will enable coverage
|
67
|
+
examples Run the examples (acceptance tests), -c will enable coverage
|
68
|
+
test Run both specs and examples, -c will enable coverage
|
69
69
|
regression Test the regression manager (runs a subset of examples)
|
70
70
|
EOT
|
71
71
|
|
data/config/version.rb
CHANGED
data/lib/origen/commands.rb
CHANGED
@@ -31,8 +31,16 @@ ORIGEN_COMMAND_ALIASES = {
|
|
31
31
|
Origen::Log.console_only = (%w(save target environment version).include?(@command) || ARGV.include?('--exec_remote'))
|
32
32
|
|
33
33
|
if ARGV.delete('--coverage') ||
|
34
|
-
((@command == 'specs' || @command == 'examples') && (ARGV.delete('-c') || ARGV.delete('--coverage')))
|
34
|
+
((@command == 'specs' || @command == 'examples' || @command == 'test') && (ARGV.delete('-c') || ARGV.delete('--coverage')))
|
35
35
|
require 'simplecov'
|
36
|
+
begin
|
37
|
+
if ENV['CONTINUOUS_INTEGRATION']
|
38
|
+
require 'coveralls'
|
39
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
40
|
+
end
|
41
|
+
rescue LoadError
|
42
|
+
# No problem
|
43
|
+
end
|
36
44
|
SimpleCov.start
|
37
45
|
Origen.log.info 'Started code coverage'
|
38
46
|
SimpleCov.configure do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -720,7 +720,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
720
720
|
version: 1.8.11
|
721
721
|
requirements: []
|
722
722
|
rubyforge_project:
|
723
|
-
rubygems_version: 2.
|
723
|
+
rubygems_version: 2.2.2
|
724
724
|
signing_key:
|
725
725
|
specification_version: 4
|
726
726
|
summary: A Semiconductor Developer's Kit
|