forked from sitepress/sitepress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
44 lines (35 loc) · 1.08 KB
/
Rakefile
File metadata and controls
44 lines (35 loc) · 1.08 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
# frozen_string_literal: true
require "rake/clean"
CLOBBER.include "pkg"
require "bundler/gem_helper"
require_relative "support/project"
Sitepress::Project.all.each do |project|
namespace project.task_namespace do
# Install gem tasks.
Bundler::GemHelper.install_tasks(dir: project.gem_dir, name: project.gem_name)
desc "Run specs for #{project.gem_name}"
task :spec do
puts "Verifying #{project.gem_name}"
project.chdir { sh "bundle exec rspec" }
end
end
end
%w[build install install:local release spec].each do |task|
desc "#{task.capitalize} all gems"
task task do
Sitepress::Project.all.each do |project|
Rake::Task[project.task_namespace(task)].invoke
end
end
end
desc "Run benchmarks"
task :benchmark do
Dir["./benchmarks/**_benchmark.rb"].each do |benchmark|
sh "ruby #{benchmark}"
end
end
desc "Run CI tasks"
task ci: %w[spec benchmark]
desc "Install gems locally"
task install_local: %w[build sitepress_core:install:local sitepress_server:install:local sitepress_cli:install:local sitepress:install:local]
task :default => :spec