Sha256: 077dd765a5f1c49d5fc2b9d2119714d2c4d8e39450de4767c7ffc3e4de5b2a3a

Contents?: true

Size: 822 Bytes

Versions: 5

Compression:

Stored size: 822 Bytes

Contents

ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.

# ------------------------------------------------------------
# Application code

File.expand_path('lib', __dir__).tap do |lib|
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
end

# ------------------------------------------------------------
# CI

if ENV['CI']
  ENV['RAILS_ENV'] = 'test'
  ENV['GENERATE_REPORTS'] ||= 'true'
end

# ------------------------------------------------------------
# Custom tasks

desc 'Remove artifacts directory'
task :clean do
  FileUtils.rm_rf('artifacts')
end

desc 'Check test coverage, check code style, check gems for vulnerabilities'
task check: %w[coverage rubocop bundle:audit]

desc 'Clean, check, build gem'
task default: %i[clean check gem]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
berkeley_library-logging-0.2.4 Rakefile
berkeley_library-logging-0.2.3 Rakefile
berkeley_library-logging-0.2.2 Rakefile
berkeley_library-logging-0.2.1 Rakefile
berkeley_library-logging-0.2.0 Rakefile