objective c - Sample .travis.yml for Cocoapods based iOS projects -
i have simple ios project. it's using cocoapods dependency management, , includes afnetworking 1 of dependency. currently, project code doing simple http request , test (written using specta) checks if succeeds.
now, i'm trying ci travis-ci. i've checked out xctool ci tutorial , objective-c ci manual travis-ci, current .travis-ci.yml is:
language: objective-c xcode_project: foobar.xcodeproj xcode_schema: foobar
the last output lines ci console are:
the command "echo " check out our documentation more information: http://about.travis-ci.org/docs/user/languages/objective-c/"" exited 0. done. build exited 0.
it seems me nothing has been tested. there's wrong .travis.yml. questions are:
- there's .xworkspace file generated cocoapods, 1 use in .travis.yml, .xcodeproj or .workspace?
- which scheme use,
foobar
orfoobartests
? - do still need additionally specify
script: xctool ...
command? from xctool ci tutorial:
click + button , add each dependency project. cocoapods appear static library named pods.
i cannot add
pods
project whole, rather each independent projects. right? , mean have each time add library podfile?
appreciate here please!
i figured out of @schemetrical 's comment above and, review of .travis.yml. there turns out typo: xcode_schema
should xcode_scheme
...
so, result, here's .travis.yml:
language: objective-c xcode_workspace: foobar.xcworkspace xcode_scheme: foobar
for vanilla cocoapods generated project/workspace, there's no such scheme called foobartests
, rather 1 named foobar
. should answer questions 1-3 above.
for question 4, added 2 additional targets: pods-foobar
, pods-foobartests
, , should contain dependencies podfile.
Comments
Post a Comment