Sha256: 978edece9cf747545ab2dd2b64d90b064e125c784a244dc40ebeca968e2894c4

Contents?: true

Size: 927 Bytes

Versions: 5

Compression:

Stored size: 927 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, except for .keep file'
task :clean do
  FileUtils.rm_rf('artifacts')
  FileUtils.mkdir('artifacts')
  FileUtils.touch(File.join('artifacts', '.keep'))
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.7 Rakefile
berkeley_library-logging-0.2.6.2 Rakefile
berkeley_library-logging-0.2.6.1 Rakefile
berkeley_library-logging-0.2.6 Rakefile
berkeley_library-logging-0.2.5 Rakefile