Skip to content

Commit 3fd2088

Browse files
committed
skip xcodebuild
1 parent b3079da commit 3fd2088

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ before_install:
1313

1414
script:
1515
- bundle exec rake rubocop
16-
- bundle exec parallel_test test/unit/ -n 4
17-
- AUTOMATION_NAME_DROID=espresso bundle exec parallel_test test/unit/android -n 4
18-
- AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec parallel_test test/unit -n 4
16+
- UNIT_TEST=true bundle exec parallel_test test/unit/ -n 4
17+
- UNIT_TEST=true AUTOMATION_NAME_DROID=espresso bundle exec parallel_test test/unit/android -n 4
18+
- UNIT_TEST=true AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec parallel_test test/unit -n 4
1919

2020
notifications:
2121
email:

test/test_helper.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ def ios
117117
}
118118
}
119119

120-
xcode_org_id = ENV['ORG_ID'] || 'Simulator'
121-
cap = add_ios_real_device(cap.dup, xcode_org_id) if real_device
122-
cap = add_xctestrun(real_device, cap.dup, xcode_org_id)
120+
if ENV['UNIT_TEST'].nil?
121+
xcode_org_id = ENV['ORG_ID'] || 'Simulator'
122+
cap = add_ios_real_device(cap.dup, xcode_org_id) if real_device
123+
cap = add_xctestrun(real_device, cap.dup, xcode_org_id)
124+
end
123125

124126
cap
125127
end

0 commit comments

Comments
 (0)