Skip to content

Commit 9d79c0c

Browse files
Update CircleCI config.yml
1 parent fb325d7 commit 9d79c0c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.circleci/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,32 @@ jobs:
117117
name: Run UnitTest
118118
command: cd android && ./gradlew test
119119

120+
121+
ios_test:
122+
macos:
123+
xcode: "10.2.0"
124+
working_directory: ~/project/InstabugSample/ios
125+
environment:
126+
FL_OUTPUT_DIR: output
127+
steps:
128+
- checkout:
129+
path: ~/project
130+
- run:
131+
name: Install node_modules
132+
command: cd .. && yarn
133+
- run:
134+
name: Remove instabug.framework
135+
command: rm -rf ../node_modules/instabug-reactnative/ios/Instabug.framework
136+
- run:
137+
name: Fetch CocoaPods Specs
138+
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
139+
- run:
140+
name: Install CocoaPods
141+
command: pod install
142+
- run:
143+
name: Build and run tests
144+
command: xcodebuild -workspace InstabugSample.xcworkspace -scheme InstabugSample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' test | xcpretty
145+
120146
publish:
121147
macos:
122148
xcode: "10.1.0"
@@ -136,11 +162,13 @@ workflows:
136162
- test_module
137163
- test_sample
138164
- test_android
165+
- ios_test
139166
- hold:
140167
requires:
141168
- test_module
142169
- test_sample
143170
- test_android
171+
- ios_test
144172
type: approval
145173
filters:
146174
branches:

0 commit comments

Comments
 (0)