forked from shakacode/react_on_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (23 loc) · 916 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
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true
# Rake will automatically load any *.rake files inside of the "rakelib" folder
# See rakelib/
require_relative "./spec/react_on_rails/support/rails32_helper"
tasks = %w[run_rspec lint]
prepare_for_ci = %w[node_package dummy_apps]
if ENV["USE_COVERALLS"] == "TRUE"
require "coveralls/rake/task"
Coveralls::RakeTask.new
tasks << "coveralls:push"
end
if using_rails32?
tasks = %w[run_rspec:gem_rails32 run_rspec:dummy_no_webpacker]
prepare_for_ci = %w[node_package dummy_apps:dummy_no_webpacker]
end
desc "Run all tests and linting"
task default: tasks
desc "All actions but no examples, good for local developer run."
task all_but_examples: ["run_rspec:all_but_examples", "lint"]
desc "Prepare for ci, including node_package, dummy app, and generator examples"
task prepare_for_ci: prepare_for_ci
desc "Runs prepare_for_ci and tasks"
task ci: [:prepare_for_ci, *tasks]