forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
39 lines (31 loc) · 989 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
require "bundler/gem_tasks"
GEMS = %w(fastlane fastlane_core deliver snapshot frameit pem sigh produce cert gym pilot credentials_manager spaceship scan supply watchbuild match screengrab danger-device_grid)
RAILS = %w(boarding refresher enhancer)
SECONDS_PER_DAY = 60 * 60 * 24
task :rubygems_admins do
names = ["KrauseFx", "ohayon", "hemal", "asfalcone", "mpirri", "mfurtak", "milch"]
(GEMS + ["krausefx-shenzhen"]).each do |gem_name|
names.each do |name|
puts `gem owner #{gem_name} -a #{name}`
end
end
end
task :test_all do
sh "rspec --pattern ./**/*_spec.rb"
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