forked from BerkeleyLibrary/alma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
20 lines (14 loc) · 651 Bytes
/
Rakefile
File metadata and controls
20 lines (14 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
ENV['RAILS_ENV'] = 'test' if ENV['CI']
# ------------------------------------------------------------
# Custom tasks
desc 'Run tests, check test coverage, check code style, check for vulnerabilities, build gem'
task default: %i[coverage rubocop bundle:audit gem]