Sha256: 290ea324cf1741316e6026a3c042150da07db05ba0e031d9076c027a2d0a8454

Contents?: true

Size: 1.96 KB

Versions: 14

Compression:

Stored size: 1.96 KB

Contents

class OrigenSWDApplication < Origen::Application

  # This information is used in headers and email templates, set it specific
  # to your application
  config.name     = "Origen SWD"
  config.initials = "OrigenSWD"

  self.name = "origen_swd"
  self.namespace = "OrigenSWD"
  config.rc_url = "git@github.com:Origen-SDK/origen_swd.git"
  config.release_externally = true

  # To enable deployment of your documentation to a web server (via the 'origen web'
  # command) fill in these attributes.
  config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/swd"
  config.web_domain = "http://origen-sdk.org/swd"
  
  config.semantically_version = true

  config.lint_test = { 
    # Require the lint tests to pass before allowing a release to proceed 
    run_on_tag: true, 
    # Auto correct violations where possible whenever 'origen lint' is run 
    auto_correct: true,  
    # Limit the testing for large legacy applications 
    #level: :easy, 
    # Run on these directories/files by default 
    #files: ["lib", "config/application.rb"], 
  } 
  
  # Ensure that all tests pass before allowing a release to continue 
  def validate_release 
    if !system("origen examples") #|| !system("origen specs") 
      puts "Sorry but you can't release with failing tests, please fix them and try again." 
      exit 1 
    else 
      puts "All tests passing, proceeding with release process!" 
    end 
  end 
  
  # Run code coverage when deploying the web site 
  def before_deploy_site 
    Dir.chdir Origen.root do 
      system "origen examples -c" 
      dir = "#{Origen.root}/web/output/coverage"        
      FileUtils.remove_dir(dir, true) if File.exists?(dir)  
      system "mv #{Origen.root}/coverage #{dir}" 
    end 
  end 
 
  # Deploy the website automatically after a production tag 
  def after_release_email(tag, note, type, selector, options) 
    command = "origen web compile --remote --api" 
    Dir.chdir Origen.root do 
      system command 
    end 
  end 

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
origen_swd-1.1.3 config/application.rb
origen_swd-1.1.2 config/application.rb
origen_swd-1.1.1 config/application.rb
origen_swd-1.1.0 config/application.rb
origen_swd-1.0.0 config/application.rb
origen_swd-0.5.0 config/application.rb
origen_swd-0.4.0 config/application.rb
origen_swd-0.3.9 config/application.rb
origen_swd-0.3.8 config/application.rb
origen_swd-0.3.7 config/application.rb
origen_swd-0.3.6 config/application.rb
origen_swd-0.3.5 config/application.rb
origen_swd-0.3.4 config/application.rb
origen_swd-0.3.3 config/application.rb