Sha256: 712fdc16fb35d98e98d68f2be065310f981c43eb31e5e9bb941ec8d64953de83

Contents?: true

Size: 746 Bytes

Versions: 43

Compression:

Stored size: 746 Bytes

Contents

if Rails.env.development?
  # See tasks/linters.rake

  task :bundle_audit do
    puts Rainbow("Running security audit on gems (bundle_audit)").green
    Rake::Task["bundle_audit"].invoke
  end

  task :security_audit do
    puts Rainbow("Running security audit on code (brakeman)").green

    sh "brakeman --exit-on-warn --quiet -A -z"
  end

  namespace :ci do
    desc "Run all audits and tests"
    task all: [:environment, :lint, :spec, :bundle_audit, :security_audit] do
      begin
        puts Rainbow("PASSED").green
        puts ""
      rescue Exception => e
        puts "#{e}"
        puts Rainbow("FAILED").red
        puts ""
        raise(e)
      end
    end
  end

  task ci: "ci:all"

  task(:default).clear.enhance([:ci])
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
react_on_rails-5.1.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-5.1.0 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-5.0.0 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-5.0.0.rc.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.3 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.2 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.0 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.0.beta.3 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.0.beta.2 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-4.0.0.beta.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.6 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.5 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.4 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.3 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.2 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.0 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.0.rc.2 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake
react_on_rails-3.0.0.rc.1 lib/generators/react_on_rails/templates/ruby_linters/lib/tasks/ci.rake