forked from alphagov/whitehall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
23 lines (18 loc) · 850 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# Our test suite generates ~17MB of logs at log level :info, switching
# to log level :warn reduces logging and increases execution speed.
ENV["LOG_LEVEL"] = "warn"
# We only set this var when running via Rake, so that we can get
# sensible coverage reports when running a full test suite,
# without overwriting them when we're just running a single test
ENV["COVERAGE"] = "true"
require File.expand_path("config/application", __dir__)
begin
require "pact/tasks"
rescue LoadError
# Pact isn't available in all environments
end
Whitehall::Application.load_tasks
Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
task default: %i[lint test cucumber jasmine pact:verify]