forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
40 lines (32 loc) · 1015 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
33
34
35
36
37
38
39
40
require "bundler/gem_tasks"
GEMS = %w(fastlane danger-device_grid)
SECONDS_PER_DAY = 60 * 60 * 24
task :rubygems_admins do
names = ["KrauseFx", "ohayon", "mpirri", "taquitos"]
(GEMS + ["krausefx-shenzhen", "commander-fastlane"]).each do |gem_name|
names.each do |name|
puts `gem owner #{gem_name} -a #{name}`
end
end
end
task :test_all do
formatter = "--format progress"
formatter += " -r rspec_junit_formatter --format RspecJunitFormatter -o #{ENV['CIRCLE_TEST_REPORTS']}/rspec/fastlane-junit-results.xml" if ENV["CIRCLE_TEST_REPORTS"]
sh "rspec --pattern ./**/*_spec.rb #{formatter}"
end
# Overwrite the default rake task
# since we use fastlane to deploy fastlane
task :push do
sh "bundle exec fastlane release"
end
#####################################################
# @!group Helper Methods
#####################################################
def box(str)
l = str.length + 4
puts ''
puts '=' * l
puts '| ' + str + ' |'
puts '=' * l
end
task default: :test_all