1 |
--- |
--- |
2 |
format_version: '6' |
format_version: '11' |
3 |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git |
4 |
project_type: other |
project_type: other |
5 |
trigger_map: |
trigger_map: |
32 |
bitrise run ${BITRISE_APP_TITLE}-${BITRISE_TRIGGERED_WORKFLOW_ID} |
bitrise run ${BITRISE_APP_TITLE}-${BITRISE_TRIGGERED_WORKFLOW_ID} |
33 |
iutest-ci: |
iutest-ci: |
34 |
after_run: |
after_run: |
35 |
|
- Mac |
36 |
|
- iOS |
37 |
|
iutest-mac-ci: |
38 |
|
after_run: |
39 |
|
- Mac |
40 |
|
iutest-ios-ci: |
41 |
|
after_run: |
42 |
- iOS |
- iOS |
43 |
iutest-android-ci: |
iutest-android-ci: |
44 |
after_run: |
after_run: |
45 |
- Android |
- Android |
46 |
|
|
47 |
iOS: |
Mac: |
48 |
steps: |
steps: |
49 |
- activate-ssh-key: |
- activate-ssh-key: |
50 |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' |
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' |
76 |
cmake --version |
cmake --version |
77 |
mkdir xcode |
mkdir xcode |
78 |
cd xcode |
cd xcode |
79 |
cmake ../projects/cmake -G "Xcode" -DCMAKE_XCODE_GENERATE_SCHEME=TRUE -Dbuild_use_gtest_configuration=OFF |
cmake ../projects/cmake -G "Xcode" -DCMAKE_XCODE_GENERATE_SCHEME=TRUE \ |
80 |
|
-Dbuild_use_gtest_configuration=OFF |
81 |
- script: |
- script: |
82 |
title: Xcodebuild |
title: Xcodebuild |
83 |
inputs: |
inputs: |
84 |
- content: | |
- content: |- |
85 |
|
#!/bin/bash |
86 |
|
set -euo pipefail |
87 |
xcodebuild -project xcode/iutest.xcodeproj -list |
xcodebuild -project xcode/iutest.xcodeproj -list |
88 |
#xcodebuild -project xcode/iutest.xcodeproj -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=2 build | xcpretty -c |
#xcodebuild -project xcode/iutest.xcodeproj -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=2 build | xcpretty -c |
89 |
xcodebuild -project xcode/iutest.xcodeproj build | xcpretty -c |
xcodebuild -project xcode/iutest.xcodeproj build | xcpretty -c |
91 |
title: Tests |
title: Tests |
92 |
inputs: |
inputs: |
93 |
- content: |- |
- content: |- |
94 |
|
#!/bin/bash |
95 |
|
set -euo pipefail |
96 |
#xcodebuild -project xcode/iutest.xcodeproj -scheme all_tests test |
#xcodebuild -project xcode/iutest.xcodeproj -scheme all_tests test |
97 |
#xcodebuild -project xcode/iutest.xcodeproj -scheme all_tests -destination 'platform=iOS' test |
#xcodebuild -project xcode/iutest.xcodeproj -scheme all_tests -destination 'platform=iOS' test |
98 |
cd xcode |
cd xcode |
104 |
$GEM_HOME |
$GEM_HOME |
105 |
$BREW_CMAKE |
$BREW_CMAKE |
106 |
$BREW_OPT_CMAKE |
$BREW_OPT_CMAKE |
107 |
|
meta: |
108 |
|
bitrise.io: |
109 |
|
stack: osx-xcode-13.4.x |
110 |
|
|
111 |
|
iOS: |
112 |
|
steps: |
113 |
|
- activate-ssh-key: |
114 |
|
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' |
115 |
|
- git-clone: {} |
116 |
|
- script: |
117 |
|
title: Set CACHE env var |
118 |
|
inputs: |
119 |
|
- content: | |
120 |
|
#!/bin/bash |
121 |
|
set -ev |
122 |
|
envman add --key GEM_HOME --value "$(gem environment gemdir)" |
123 |
|
envman add --key BREW_CMAKE --value "$(brew --cellar)/cmake" |
124 |
|
envman add --key BREW_OPT_CMAKE --value "/usr/local/opt/cmake" |
125 |
|
#envman add --key BREW_CACHE_CMAKE --value "$(brew --cache)/cmake" |
126 |
|
- cache-pull: {} |
127 |
|
- script: |
128 |
|
title: gem install |
129 |
|
inputs: |
130 |
|
- content: |- |
131 |
|
system_profiler SPHardwareDataType |
132 |
|
gem install xcpretty |
133 |
|
- script: |
134 |
|
title: Clone iOS CMake toolchain |
135 |
|
inputs: |
136 |
|
- content: |- |
137 |
|
#!/bin/bash |
138 |
|
git clone https://github.com/leetal/ios-cmake.git |
139 |
|
- script: |
140 |
|
title: CMake |
141 |
|
inputs: |
142 |
|
- content: |- |
143 |
|
#!/bin/bash |
144 |
|
# fail if any commands fails |
145 |
|
set -ex |
146 |
|
cmake --version |
147 |
|
mkdir ios |
148 |
|
cd ios |
149 |
|
cmake ../projects/cmake -G "Xcode" -DCMAKE_XCODE_GENERATE_SCHEME=TRUE \ |
150 |
|
-Dbuild_use_gtest_configuration=OFF \ |
151 |
|
-DCMAKE_TOOLCHAIN_FILE=../ios-cmake/ios.toolchain.cmake -DPLATFORM=OS64COMBINED |
152 |
|
- script: |
153 |
|
title: Xcodebuild |
154 |
|
inputs: |
155 |
|
- content: |- |
156 |
|
#!/bin/bash |
157 |
|
set -euo pipefail |
158 |
|
xcodebuild -project ios/iutest.xcodeproj -list |
159 |
|
#xcodebuild -project ios/iutest.xcodeproj -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=2 build | xcpretty -c |
160 |
|
xcodebuild -project ios/iutest.xcodeproj build | xcpretty -c |
161 |
|
- script: |
162 |
|
title: Tests |
163 |
|
inputs: |
164 |
|
- content: |- |
165 |
|
#!/bin/bash |
166 |
|
set -euo pipefail |
167 |
|
#xcodebuild -project ios/iutest.xcodeproj -scheme all_tests test |
168 |
|
#xcodebuild -project ios/iutest.xcodeproj -scheme all_tests -destination 'platform=iOS' test |
169 |
|
cd ios |
170 |
|
# ctest -C Debug -V |
171 |
|
- cache-push: |
172 |
|
inputs: |
173 |
|
- cache_paths: | |
174 |
|
$BITRISE_CACHE_DIR |
175 |
|
$GEM_HOME |
176 |
|
$BREW_CMAKE |
177 |
|
$BREW_OPT_CMAKE |
178 |
|
meta: |
179 |
|
bitrise.io: |
180 |
|
stack: osx-xcode-13.4.x |
181 |
|
|
182 |
Android: |
Android: |
183 |
steps: |
steps: |
184 |
- script: |
- script: |
242 |
meta: |
meta: |
243 |
bitrise.io: |
bitrise.io: |
244 |
stack: linux-docker-android-20.04 |
stack: linux-docker-android-20.04 |
245 |
|
|
246 |
primary: |
primary: |
247 |
steps: |
steps: |
248 |
- activate-ssh-key: |
- activate-ssh-key: |
257 |
git remote rm fork || true |
git remote rm fork || true |
258 |
bitrise run iOS |
bitrise run iOS |
259 |
bitrise run Android |
bitrise run Android |
260 |
|
|
261 |
test: |
test: |
262 |
after_run: |
after_run: |
263 |
|
- Mac |
264 |
- iOS |
- iOS |
265 |
- Android |
- Android |