{"id":212615,"date":"2014-02-19T03:06:03","date_gmt":"2014-02-18T23:06:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=212615"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=212615","title":{"rendered":"<span class=\"post_title\">Xcode \u0438 Travis: \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/b55\/032\/081\/b5503208119c9d4c2143450bc704f529.png\" align=\"right\"\/>\u041e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0438\u0434\u0435\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0438: \u00ab\u0440\u0430\u0437 \u0443\u0436 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0442\u0435\u0441\u0442\u044b, \u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445, \u0430 \u043d\u0435 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439\u00bb. \u041d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u0442, \u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0443\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u043e\u0432 \u0432 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0438, \u0442\u043e \u0440\u0430\u0441\u043a\u0440\u043e\u044e \u043c\u044b\u0441\u043b\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<br \/>  <br clear=\"all\"\/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041b\u044e\u0431\u0438\u0442\u0435 \u043b\u0438 \u0432\u044b \u0431\u0430\u0433\u0438? \u042f \u0432\u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043e\u0436\u0430\u044e: \u0442\u043e\u043b\u0441\u0442\u044b\u0435 \u0441\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u2014 \u0441\u043f\u043b\u043e\u0448\u043d\u043e\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435, \u0438\u0445 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0438 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043d\u0438\u043c\u0438 \u0440\u0435\u043b\u0438\u0437. \u041e\u0434\u043d\u0430\u043a\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0438 \u043c\u0430\u043b\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u0431\u0430\u0433\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043d\u0435\u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u043c \u0433\u043b\u0430\u0437\u043e\u043c, \u043d\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u043e\u0440\u043e\u0432\u044f\u0442 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u044f\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u043a\u0438\u0445-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 <abbr title=\"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430\">\u041e\u0421<\/abbr>, \u0438\u043b\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u042d\u0442\u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u043d\u0435\u0433\u043e\u0434\u044f\u0438, \u0431\u0443\u0434\u0443\u0447\u0438 \u043d\u0435\u043f\u043e\u0439\u043c\u0430\u043d\u043d\u044b\u043c\u0438, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0432\u044b\u043f\u0438\u0442\u044c \u043d\u0435\u043c\u0430\u043b\u043e \u043a\u0440\u043e\u0432\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442\u044c \u0441\u043e\u043d \u043f\u043e \u043d\u043e\u0447\u0430\u043c. \u041f\u0430\u0440\u0430\u0434\u043e\u043a\u0441\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0447\u0435\u043c \u0440\u0435\u0436\u0435 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0430\u0433, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0438\u043b \u043f\u043e\u0440\u043e\u0439 \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0435\u0433\u043e \u043f\u043e\u0438\u043c\u043a\u0443 \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443, \u0442\u043e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u044b \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0432\u0441\u0451\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0439 \u0432\u0435\u0440\u0441\u0438\u0439 \u041e\u0421, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0432\u0430\u043c \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0431\u0435\u0433\u043b\u044b\u0439 \u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u0430\u0440\u044b \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043d\u0430 GitHub, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0434\u0430\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430 (\u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/travis-ci.org\">Travis-CI<\/a>), \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 iOS. \u0415\u0434\u0438\u043d\u0438\u0446\u044b \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e\u0442 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 OS X, \u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u043e \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443.<\/p>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 XCode 5 \u043c\u043e\u0434\u0443\u043b\u044c Continuous Integration \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\u0445, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438, \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u043f\u0440\u0438\u0448\u0435\u043b\u0441\u044f \u043d\u0435 \u043f\u043e \u0434\u0443\u0448\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0435\u0433\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043e \u043d\u0451\u043c \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/company\/touchinstinct\/blog\/199110\/\">\u043f\u0438\u0441\u0430\u043b\u0438<\/a>.<\/p>\n<h4>xcodebuild<\/h4>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <i>xcodebuild<\/i>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0434\u0451\u0442 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 <i>Xcode Command Line Tools<\/i>. \u0420\u0430\u043d\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u043b\u043e <i><a href=\"https:\/\/github.com\/facebook\/xctool\/\">xctool<\/a><\/i> \u043e\u0442 Facebook, \u0442.\u043a. \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 <i>xcodebuild<\/i> \u043d\u0435 \u0437\u0430\u0432\u043e\u0434\u0438\u043b\u0441\u044f \u0431\u0435\u0437 \u0431\u0443\u0431\u043d\u043e\u0432 \u0438 \u043f\u043b\u044f\u0441\u043e\u043a, \u0430 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 <i>xctool<\/i> \u0432\u044b\u0434\u0430\u0451\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043d\u0430 \u0433\u043b\u0430\u0437 \u0432\u044b\u0432\u043e\u0434. \u041e\u0434\u043d\u0430\u043a\u043e \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c Xcode 5 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0430\u0441\u044c \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u0440\u043e\u0434\u043d\u043e\u0433\u043e <i>xcodebuild<\/i>: \u0431\u0443\u0431\u043d\u044b \u0441\u0442\u0430\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u0430 <i>xctool<\/i> \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 <a href=\"https:\/\/github.com\/facebook\/xctool\/issues\/205\">\u043d\u0435<\/a> <a href=\"https:\/\/github.com\/facebook\/xctool\/issues\/275\">\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442<\/a> \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0438\u043f \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0434\u043b\u044f \u043d\u0430\u0441 \u043c\u043e\u043c\u0435\u043d\u0442.<\/p>\n<p>  \u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">xcodebuild test -project {project}.xcodeproj -scheme {scheme} -sdk iphonesimulator -destination OS=6.0,name=iPhone -configuration Release <\/code><\/pre>\n<p>  \u0412\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 (\u0438\u043b\u0438 workspace), \u0441\u0445\u0435\u043c\u0443, SDK, \u0432\u0435\u0440\u0441\u0438\u044e \u041e\u0421, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Debug\/Release.<\/p>\n<p>  \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043c\u044b \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044f, \u0447\u0442\u043e Deployment Target \u0443 \u043d\u0430\u0441 5.0, \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u044b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f iOS \u0438 OS X):<\/p>\n<pre><code class=\"bash\">for configuration in Release Debug do     for device in &quot;iPhone&quot; &quot;iPad&quot;     do         for iosversion in 6.0 6.1 5.0 5.1         do             test_ios iOSTests &quot;$iosversion&quot; &quot;$device&quot; &quot;$configuration&quot;         done     done     for device in &quot;iPhone Retina (3.5-inch)&quot; &quot;iPhone Retina (4-inch)&quot; &quot;iPad Retina&quot;     do         for iosversion in 6.0 6.1 7.0         do             test_ios iOSTests &quot;$iosversion&quot; &quot;$device&quot; &quot;$configuration&quot;         done     done     for device in &quot;iPhone Retina (4-inch 64-bit)&quot; &quot;iPad Retina (64-bit)&quot;     do         test_ios iOSTests-64bit 7.0 &quot;$device&quot; &quot;$configuration&quot;     done     test_osx OSXTests &quot;$configuration&quot; done <\/code><\/pre>\n<p><i>(test_ios \u0438 test_osx \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, <a href=\"https:\/\/github.com\/rabovik\/TravisCITests\/blob\/ab60870aca5f13da7e41352ad4f203678b8bfd72\/Script\/test-main-configurations.sh\">\u043f\u043e\u043b\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 <a href=\"https:\/\/github.com\/rabovik\/TravisCITests\">\u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/a> \u043d\u0430 GitHub)<\/i><\/p>\n<p>  \u042d\u0442\u043e \u0434\u0430\u0441\u0442 \u043d\u0430\u043c 40 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439, \u0447\u0442\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0443\u0436\u0435 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c. \u0412\u0435\u0434\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445 \u0438\u043b\u0438 UI \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435\u0442. \u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u043f\u0435\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043e OS X Mavericks, \u0442\u043e \u0443\u0441\u043f\u0435\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430 \u043d\u0435\u0439 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b iOS 5.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:  <\/p>\n<table>\n<tr>\n<td><b>Logic Tests<\/b><\/td>\n<td>iOS 6.0<\/td>\n<td>iOS 6.1<\/td>\n<td>iOS 7.0<\/td>\n<td>iOS 7.0 64-bit<\/td>\n<td>OS X<\/td>\n<\/tr>\n<tr>\n<td>Release<\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<\/tr>\n<tr>\n<td>Debug<\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<\/tr>\n<\/table>\n<table>\n<tr>\n<td><b>UI Tests<\/b><\/td>\n<td>iPhone<\/td>\n<td>iPad<\/td>\n<td>iPhone Retina (3.5-inch)<\/td>\n<td>iPhone Retina (4-inch)<\/td>\n<td>iPad Retina<\/td>\n<\/tr>\n<tr>\n<td>iOS 6.0<\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<\/tr>\n<tr>\n<td>iOS 7.0<\/td>\n<td><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<td><b>\u2713<\/b><\/td>\n<\/tr>\n<\/table>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430\u0431\u043e\u0440 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439, \u043a\u043e\u043d\u0435\u0447\u043d\u043e.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0438 \u0432\u044b\u0445\u043e\u0434\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0435\u0443\u0434\u0430\u0447\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u043c<br \/>  \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">test-main-configurations.sh<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/sh  # Global settings project=XCode\/TravisCI.xcodeproj <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Formatting output<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">function red() {     eval &quot;$1=\\&quot;$(tput setaf 1)$2$(tput sgr 0)\\&quot;&quot; } function green() {     eval &quot;$1=\\&quot;$(tput setaf 2)$2$(tput sgr 0)\\&quot;&quot; } function yellow() {     eval &quot;$1=\\&quot;$(tput setaf 3)$2$(tput sgr 0)\\&quot;&quot; } function bold() {     eval &quot;$1=\\&quot;$(tput bold)$2$(tput sgr 0)\\&quot;&quot; } function echo_fmt() {     local str=$1     local color=$2     local bold=$3     if [ &quot;$color&quot; != '' ]; then          $color str &quot;$str&quot;      fi     if [ &quot;$bold&quot; != '' ]; then          $bold str &quot;$str&quot;      fi     echo $str } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Testing<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">succeeded_count=0 function test() {     local options=&quot;$@&quot;     echo_fmt &quot;xcodebuild test -project $project $options&quot; yellow      xcodebuild test -project $project &quot;$@&quot;     local exitcode=$?     if [[ $exitcode != 0 ]] ; then         echo_fmt &quot;xcodebuild exited with code $exitcode&quot; red         echo_fmt &quot;=== TESTS FAILED ===&quot; red bold         exit 1     else         ((succeeded_count++))     fi }  function test_ios() {     local scheme=$1     local iosversion=$2     local device=&quot;$3&quot;     local configuration=$4     shift 4     echo_fmt &quot;=== TEST SCHEME $scheme IOS $iosversion DEVICE $device CONFIGURATION $configuration ===&quot; yellow bold      test -scheme &quot;$scheme&quot; \\          -sdk iphonesimulator \\          -destination OS=&quot;$iosversion&quot;,name=&quot;$device&quot; \\          -configuration &quot;$configuration&quot; \\          &quot;$@&quot; }  function test_osx() {     local scheme=$1     local configuration=$2     shift 2     echo_fmt &quot;=== TEST SCHEME $scheme OSX CONFIGURATION $configuration ===&quot; yellow bold     test -scheme &quot;$scheme&quot; -configuration &quot;$configuration&quot; &quot;$@&quot; } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\"># Logic tests for configuration in Release Debug do     for iosversion in 6.0 6.1 7.0 #5.0 5.1 # Mavericks does not support iOS 5 Simulator     do         test_ios &quot;iOSLogicTests&quot; &quot;$iosversion&quot; &quot;iPad Retina&quot; &quot;$configuration&quot;     done     test_ios &quot;iOSLogicTests-64bit&quot; 7.0 &quot;iPad Retina (64-bit)&quot; &quot;$configuration&quot; ONLY_ACTIVE_ARCH=YES     test_osx &quot;OSXTests&quot; &quot;$configuration&quot;     done  # UI tests test_ios &quot;iOSUITests&quot; 6.0 &quot;iPhone&quot; Debug for device in &quot;iPad&quot; &quot;iPhone Retina (3.5-inch)&quot; &quot;iPhone Retina (4-inch)&quot; &quot;iPad Retina&quot; do     for iosversion in 6.0 7.0     do         test_ios &quot;iOSUITests&quot; &quot;$iosversion&quot; &quot;$device&quot; Debug     done done  # Result echo_fmt &quot;=== SUCCEEDED $succeeded_count CONFIGURATIONS. ===&quot; green bold <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e:  <\/p>\n<pre><code class=\"bash\">.\/Script\/test-main-configurations.sh <\/code><\/pre>\n<p>\u0432\u044b\u0434\u0430\u0441\u0442 \u043d\u0430\u043c \u043b\u0438\u0431\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0434\u0430\u0447\u043d\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u0430\u0445:  <\/p>\n<blockquote><p><font color=\"green\"><b>=== SUCCEEDED 19 CONFIGURATIONS ===<\/b><\/font><\/p><\/blockquote>\n<p>\u043b\u0438\u0431\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435:  <\/p>\n<blockquote><p><font color=\"red\"><b>=== TESTS FAILED ===<\/b><\/font><\/p><\/blockquote>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 iOS 64-bit<\/b><\/p>\n<div class=\"spoiler_text\">\u0418\u0437-\u0437\u0430 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0431\u0430\u0433\u0430 Xcode \u0447\u0430\u0441\u0442\u043e <a href=\"http:\/\/stackoverflow.com\/questions\/18743404\/xcode5-says-simulator-in-use-when-running-64-bit-unit-tests\">\u043d\u0435 \u0434\u0430\u0451\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 64-\u0431\u0438\u0442\u043d\u043e\u043c \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435<\/a> \u0438 \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/9df\/393\/ab7\/9df393ab75c739b1bee573e14c87de9b.png\"\/><br \/>  <a href=\"http:\/\/stackoverflow.com\/a\/21781010\/441735\">\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439<\/a> <b>\u00abBuild Active Architecture Only\u00bb<\/b>=<b>\u00abYES\u00bb<\/b> \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 (Debug\/Release). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u043b\u044f 64-\u0431\u0438\u0442\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u043f\u0446\u0438\u044f <code>ONLY_ACTIVE_ARCH=YES<\/code>.  <\/div>\n<\/div>\n<p>  <\/p>\n<h4>XCode<\/h4>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043a\u043e\u043c\u0443-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0439\u0442\u0438\u0441\u044c \u043d\u0435 \u043f\u043e \u0434\u0443\u0448\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u0440\u0433\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 XCode \u0434\u0435\u043b\u0430\u0435\u043c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 <b>Add Target\u2026<\/b> -&gt; <b>Other<\/b> -&gt; <b>Aggregate<\/b>, \u0437\u0430\u0442\u0435\u043c <b>Editor<\/b> -&gt; <b>Add Build Phase<\/b> -&gt; <b>Add Run Script Build Phase<\/b>, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code class=\"bash\">cd ${SRCROOT}\/.. # \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f scriptname=&quot;test-main-configurations&quot; script=&quot;Script\/${scriptname}.sh&quot; log=&quot;Script\/${scriptname}.log&quot; $script &gt; $log # \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u0432\u044b\u0432\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0444\u0430\u0439\u043b if [[ $? != 0 ]] ; then # \u0435\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u0435\u0439, ...     echo &quot;error: TESTS FAILED&quot; # ... \u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u043c, ...     exit 1 else     rm $log # ... \u0438\u043d\u0430\u0447\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b fi <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/d9b\/b41\/2c4\/d9bb412c4250af388bd260bba8795a23.png\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u043b\u0438 \u0441\u0431\u043e\u0440\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u0440\u0433\u0435\u0442\u0430 (<b>\u2318<\/b>+<b>B<\/b>) \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c, \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0438\u0434\u0451\u043c \u0432 \u043b\u043e\u0433 <i>Scripts\/test-main-configurations.log<\/i> \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0432 \u0447\u0451\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430.<br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0442\u0430\u043a\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0441\u0438\u043b\u044b \u0432\u043e\u043b\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u0442, \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u043f\u0440\u0438 \u0432\u044b\u043f\u0443\u0441\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 <i>Build Phase<\/i> \u0432 \u0432\u0435\u0442\u043a\u0435 release <abbr title=\"Distributed Version Control System\">DV\u0421S<\/abbr>.<\/p>\n<h4>Travis-CI<\/h4>\n<p>  \u041d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u0441\u0442\u044b \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <a href=\"https:\/\/travis-ci.org\/\">Travis-CI<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c <i>push<\/i> \u043d\u0430 GitHub \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0442\u0435\u0441\u0442\u044b. \u0418\u0437\u043b\u0438\u0448\u043d\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0431\u043b\u0430\u0433\u043e \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/182294\/\">\u0431\u044b\u043b\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a>, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445.<\/p>\n<p>  \u0412\u0441\u0451, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f, \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0444\u0430\u0439\u043b\u0438\u043a <i>.travis.yml<\/i>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code>language: objective-c script: Script\/test-main-configurations.sh <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 Travis-CI \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0432\u0441\u0451. \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u0430 pull-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u043e\u0442 Travis:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/8f9\/a92\/b71\/8f9a92b71aa3d69a3783a891d5b27661.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/c63\/c1f\/f79\/c63c1ff7965c47d76d30d44758647214.png\"\/><\/p>\n<p>  \u0415\u0449\u0451 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u0445\u0435\u043c\u044b \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0442.\u0435. \u0434\u043b\u044f \u043d\u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0444\u043b\u0430\u0436\u043e\u043a <i>Shared<\/i>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/ee6\/7a1\/de9\/ee67a1de99d22cf7aa52a4c78be2e73c.png\"\/><\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, Travis \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Xcode 5.0.2 \u043d\u0430 OS X 10.8.5, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u043d\u0430 iOS 5.0 \u0438 iOS 5.1.<\/p>\n<h4>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430 iOS 5, \u0442\u043e \u0442\u0435\u0441\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u043d\u0430 \u043d\u0451\u043c, \u043d\u0430\u043f\u0438\u0441\u0430\u0432 <a href=\"https:\/\/github.com\/rabovik\/TravisCITests\/blob\/ab60870aca5f13da7e41352ad4f203678b8bfd72\/Script\/test-on-device.sh\">\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u0434\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439. \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u0430 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u0432\u0430\u0448\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439, \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e.<br \/>  \u041a\u043e\u043c\u0430\u043d\u0434\u0430 <i>xcodebuild<\/i> \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">xcodebuild test -project XCode\/TravisCI.xcodeproj -scheme iOSDeviceLogicTests -sdk iphoneos -destination name='iPad Yan' -configuration Release <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0437\u0430\u0432\u0435\u043b\u043e\u0441\u044c, \u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 <i>provisioning profile<\/i>. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0438\u0437 XCode.<\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0442\u0430\u0440\u0433\u0435\u0442\u0430 \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0432 <b>Build Phases<\/b> \u0432 <b>Target Dependencies<\/b> \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440.<\/li>\n<li>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>Bundle Loader<\/b> \u0432 <b>Build Settings<\/b> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432:<br \/> \n<pre><code>$(BUILT_PRODUCTS_DIR)\/MyExistingApp.app\/MyExistingApp <\/code><\/pre>\n<\/li>\n<li>\u0410 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>Test Host<\/b> \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<br \/> \n<pre><code>$(BUNDLE_LOADER) <\/code><\/pre>\n<\/li>\n<li>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>Symbols Hidden by Default<\/b> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u0435\u043d <b>NO<\/b>.<\/li>\n<\/ul>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u0423\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f!<\/p>\n<h4>\u0421\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/rabovik\/TravisCITests\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 GitHub<\/a><\/li>\n<li><a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/Darwin\/Reference\/ManPages\/man1\/xcodebuild.1.html\">man xcodebuild<\/a><\/li>\n<li><a href=\"http:\/\/travis-ci.org\/\">Travis-CI<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/212615\/\"> http:\/\/habrahabr.ru\/post\/212615\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/b55\/032\/081\/b5503208119c9d4c2143450bc704f529.png\" align=\"right\"\/>\u041e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0438\u0434\u0435\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0438: \u00ab\u0440\u0430\u0437 \u0443\u0436 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0442\u0435\u0441\u0442\u044b, \u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445, \u0430 \u043d\u0435 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439\u00bb. \u041d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u0442, \u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0443\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u043b\u043e\u0432 \u0432 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0438, \u0442\u043e \u0440\u0430\u0441\u043a\u0440\u043e\u044e \u043c\u044b\u0441\u043b\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<br \/>  <br clear=\"all\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-212615","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=212615"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212615\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}