Sha256: fd2a6958072fbcc2e3f7475af45b365fd7ad0d6254ea05069a45076008f72771
Contents?: true
Size: 1.96 KB
Versions: 5
Compression:
Stored size: 1.96 KB
Contents
class OrigenAhbApplication < Origen::Application # This information is used in headers and email templates, set it specific # to your application config.name = "origen ahb" config.initials = "OrigenAhb" self.name = "origen_ahb" self.namespace = "OrigenAhb" config.rc_url = "git@github.com:Origen-SDK/origen_ahb.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/ahb" config.web_domain = "http://origen-sdk.org/ahb" 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
5 entries across 5 versions & 1 rubygems