Skip to content

Commit 42cc069

Browse files
committed
Skip tests on earlier verisons since UI Testing requires iOS Simulator 9.0 or later
1 parent f976034 commit 42cc069

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source "http://rubygems.org"
22

33
gem "cocoapods", "~> 0.39.0"
4+
gem "pry"
45
gem "rake"
56
gem "xcpretty"

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,24 @@ GEM
3636
nap (>= 0.8, < 2.0)
3737
netrc (= 0.7.8)
3838
cocoapods-try (0.5.1)
39+
coderay (1.1.1)
3940
colored (1.2)
4041
escape (0.0.4)
4142
fuzzy_match (2.0.4)
4243
i18n (0.7.0)
4344
json (1.8.3)
45+
method_source (0.8.2)
4446
minitest (5.8.4)
4547
molinillo (0.4.4)
4648
nap (1.1.0)
4749
netrc (0.7.8)
50+
pry (0.10.3)
51+
coderay (~> 1.1.0)
52+
method_source (~> 0.8.1)
53+
slop (~> 3.4)
4854
rake (10.5.0)
4955
rouge (1.10.1)
56+
slop (3.6.0)
5057
thread_safe (0.3.5)
5158
tzinfo (1.2.2)
5259
thread_safe (~> 0.1)
@@ -62,6 +69,7 @@ PLATFORMS
6269

6370
DEPENDENCIES
6471
cocoapods (~> 0.39.0)
72+
pry
6573
rake
6674
xcpretty
6775

Rakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ namespace :ci do
55
task :test, [:os] do |t, args|
66
version = args[:os] || "latest"
77
Rake::Task["framework:build"].invoke version
8-
Rake::Task["example:test"].invoke version
8+
# UI Testing requires iOS Simulator 9.0 or later.
9+
if version == "latest" || Gem::Version.new("9.0") <= Gem::Version.new(version)
10+
Rake::Task["example:test"].invoke version
11+
else
12+
Rake::Task["example:build"].invoke version
13+
end
914
end
1015
end
1116

0 commit comments

Comments
 (0)