origen 0.2.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9023aa4162108db923831a277ad1f31b872ac2cf
4
- data.tar.gz: 6bc389d23096efde82668b6b7652e59a98a886b7
3
+ metadata.gz: 25b15e270740c0844ea3310d0b8b7dba5ea4e449
4
+ data.tar.gz: e1c78978a03c9f992ab549db6e53bc02364b4b4e
5
5
  SHA512:
6
- metadata.gz: d1686e33496b9bc14ae9039ba3f4045f080c1c8811fb37c2fdf554c5094a46cf9e52c55438d98551626b5a599acfe66d22d14ebe04bbc78b02d6d5e1bfe26cd7
7
- data.tar.gz: dabe7b99bb6ac62c685557223579443fb14761c9c438eb6d704b9da7fd60c4480944f1c6d5cc794b29a543650348549c0eddc3447cbf5e5f8ded578beb5d50c8
6
+ metadata.gz: ec73502e12c6e34fd2b15f5c32e9464d1b1a4e1397040af6858516c3f14343fa9b2e8f7d93be8fc041d30819ce19bce47911e0ed1017ccd43481d425960eb5b1
7
+ data.tar.gz: 6edf23f23cbfac8c770408d45478343e81ae7399d7387525a20ce3380786805da3403b27f92e04ddc663cc13061444ee6f2335d6f2b613eca082ea1d8afa33cc
@@ -1,5 +1,4 @@
1
1
  class OrigenCoreApplication < Origen::Application
2
-
3
2
  self.name = "Origen Core"
4
3
  self.namespace = "Origen"
5
4
 
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
- # For some unidentified reason Rspec does not autorun on this version
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
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- BUGFIX = 1
4
+ BUGFIX = 2
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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.1
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-07-23 00:00:00.000000000 Z
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.4.5
723
+ rubygems_version: 2.2.2
724
724
  signing_key:
725
725
  specification_version: 4
726
726
  summary: A Semiconductor Developer's Kit