Sha256: ed3081d96cfc70000caa1b7635d81a8013c5f4c5b8be52e621626e260aea1040
Contents?: true
Size: 1.96 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
origen_swd-0.3.2 | config/application.rb |