Class: Bulldozer::CiGenerator

Inherits:
Generators::Base show all
Defined in:
lib/bulldozer/generators/ci_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#configure_ciObject



18
19
20
# File 'lib/bulldozer/generators/ci_generator.rb', line 18

def configure_ci
  template "circle.yml.erb", "circle.yml"
end

#simplecov_test_integrationObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bulldozer/generators/ci_generator.rb', line 5

def simplecov_test_integration
  inject_into_file "spec/spec_helper.rb", before: 'SimpleCov.start "rails"' do
    "\n  if ENV[\"CIRCLE_ARTIFACTS\"]\ndir = File.join(ENV[\"CIRCLE_ARTIFACTS\"], \"coverage\")\nSimpleCov.coverage_dir(dir)\n  end\n\n    RUBY\n  end\nend\n"