{"id":106,"date":"2014-05-02T09:19:02","date_gmt":"2014-05-02T00:19:02","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/05\/02\/wercker"},"modified":"2022-10-29T22:32:02","modified_gmt":"2022-10-29T13:32:02","slug":"wercker","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/05\/02\/wercker\/","title":{"rendered":"Github\u3001Bitbucket \u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u7121\u6599\u3067CI\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9 Wercker \u3092\u4f7f\u3063\u3066\u307f\u305f"},"content":{"rendered":"
\u4eca\u5e74\u306eGW\u306f\u305f\u307e\u3063\u3066\u3044\u308b\u672c\u3092\u8aad\u307e\u306a\u3044\u3068\u3001\u3068\u601d\u3063\u3066\u3044\u308b\u4f50\u3005\u6728\u3067\u3059\u3002<\/p>\n
\u30c6\u30b9\u30c8\u3001\u3057\u3066\u307e\u3059\u304b\uff1f Wercker \u306f\u73fe\u5728\u30d9\u30fc\u30bf\u671f\u9593\u4e2d\u3002 \uff082014\/05\/02\u73fe\u5728\uff09<\/em><\/p>\n \u30d9\u30fc\u30bf\u671f\u9593\u4e2d\u306f\u3001\u4e0b\u8a18\u6761\u4ef6\u3067\u767b\u9332\u30fb\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n \u3068\u3053\u308d\u3067\u3001Wercker \u3063\u3066\u3069\u3046\u767a\u97f3\u3059\u308b\u306e\u304c\u6b63\u3057\u3044\u3093\u3060\u308d\u3046\u2026\u3068\u601d\u3044\u30b0\u30b0\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Wercker \u516c\u5f0f\u306e twitter \u3067\u4e2d\u306e\u4eba\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u767a\u8a00\u3057\u3066\u3044\u307e\u3057\u305f\u3002 we pronounce it as "worker"<\/p>\n<\/blockquote>\n "worker"\u3068\u767a\u97f3\u3057\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3002\u30ab\u30bf\u30ab\u30ca\u3067\u8868\u3059\u3068\u3059\u308c\u3070\u3001\u300c\u30ef\u30fc\u30ab\u30fc\u300d\u3067\u3059\u304b\u306d\u3002<\/p>\n Wercker \u306e\u65b0\u898f\u767b\u9332\u304b\u3089CI\u5b9f\u884c\u307e\u3067\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001\u4eca\u56de\u306f Bitbucket \u3092\u4f7f\u3063\u3066\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 Wercker<\/a> \u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u53f3\u4e0a\u306e\u300cREGISTER\u300d\u304b\u3089\u65b0\u898f\u767b\u9332\u753b\u9762\u306b\u884c\u304d\u307e\u3059\u3002<\/p>\n <\/p>\n \u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3002<\/p>\n <\/p>\n \u300cREGISTER NOW\u300d\u3092\u62bc\u3057\u307e\u3059\u3002Github \u9023\u643a\u3059\u308b\u5834\u5408\u306f\u3001\u300cREGISTER WITH GITHUB\u300d\u304b\u3089\u3002\u4eca\u56de\u306f\u3001Bitbucket \u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3046\u4e88\u5b9a\u306a\u306e\u3067\u3001\u4e0a\u306e\u65b9\u306e\u300cREGISTER NOW\u300d\u3092\u62bc\u3057\u307e\u3059\u3002 <\/p>\n \u767b\u9332\u3059\u308b\u3068\u3001\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u306e\u3067\u3001\u300cACTIVATE YOUR ACCOUNT NOW\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u767b\u9332\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n \u6b21\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0\u3092\u884c\u3044\u307e\u3059\u3002\u300c+ Add an Application\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n <\/p>\n \u6b21\u306b\u3001Github \u304b Bitbucket \u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4eca\u56de\u306f Bitbucket \u3092\u5229\u7528\u3059\u308b\u306e\u3067\u3001\u53f3\u306e\u300cConnect\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n <\/p>\n Bitbucket \u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u5207\u308a\u66ff\u308f\u308b\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u300c\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u300d\u3067\u3001Wercker \u306b\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n <\/p>\n \u3069\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3046\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30b5\u30f3\u30d7\u30eb\u7528\u306b\u4f5c\u6210\u3057\u305f app_sample \u3092\u9078\u3093\u3067\u3001\u300cUse selected repo\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n <\/p>\n \u30d3\u30eb\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001app_sample \u306b werckerbot \u3092\u30b3\u30e9\u30dc\u30ec\u30fc\u30bf\u30fc\u3068\u3057\u3066\u300c\u8aad\u307f\u51fa\u3057\u300d(READ\u6a29\u9650) \u3067\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u300cAdd werckerbot\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Bitbucket \u5074\u3067 werckerbot \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u8ffd\u52a0\u3067\u304d\u305f\u3089\u3001Wercker \u306e\u753b\u9762\u306e\u65b9\u306e\u300cNext\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n <\/p>\n wercker.yml \u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u57fa\u306b\u81ea\u52d5\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u57fa\u306bwercker.yml\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002wercker.yml \u306e\u8a73\u3057\u3044\u5185\u5bb9\u306b\u3064\u3044\u3066\u306f\u5f8c\u307b\u3069\u3002\u3068\u308a\u3042\u3048\u305a\u5185\u5bb9\u3092\u30b3\u30d4\u30da\u3057\u3066 wercker.yml \u3092\u4f5c\u6210\u3057\u3066\u3001\u300cNext\u300d\u3067\u6b21\u3078\u3002 \u6700\u5f8c\u306b\u3001\u300cCreate Application\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u753b\u9762\u306b\u884c\u304d\u307e\u3059\u3002<\/p>\n <\/p>\n \u5148\u307b\u3069\u4f5c\u6210\u3057\u305f wercker.yml \u306b\u5fc5\u8981\u306a\u624b\u9806\u3092\u9069\u5207\u306b\u8ffd\u8a18\u3057\u3066\u3001\u3055\u3063\u305d\u304f\u300cBuild now\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30d3\u30eb\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002 <\/p>\n <\/p>\n \u7121\u4e8b\u30c6\u30b9\u30c8\u304c\u901a\u308a\u307e\u3057\u305f\uff01 \u3061\u306a\u307f\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3060\u30685\u5206\u4ee5\u4e0a\u5fdc\u7b54\u304c\u306a\u3044\u5834\u5408\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002 <\/p>\n \u3053\u308c\u306f\u3001wercker.yml \u3067 no-response-timeout \u3092\u6307\u5b9a\u3059\u308b\u3068\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002 <\/p>\n \u4e0a\u8a18\u3067\u898b\u3066\u304d\u305f\u901a\u308a\u3001Wercker \u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001wercker.yml \u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u4f5c\u6210\u3057\u3066\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b push \u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u3001\u300c4. Setup your wercker.yml\u300d\u3067\u3001\u81ea\u52d5\u7684\u306b wercker.yml \u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u3066\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u57fa\u306b\u5fc5\u8981\u306a\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n \u4eca\u56de\u4f5c\u6210\u3057\u305f wercker.yml \u306f\u4e0b\u8a18\u306e\u901a\u308a\u3002<\/p>\n \u5185\u5bb9\u306b\u3064\u3044\u30661\u3064\u305a\u3064\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n \u30d3\u30eb\u30c9\u3084\u30c7\u30d7\u30ed\u30a4\u304c\u5b9f\u884c\u3055\u308c\u308b\u74b0\u5883\u3002\u4eca\u56de\u306f wercker\/rvm \u304c\u5165\u3063\u3066\u3044\u305f\u306e\u3067\u305d\u306e\u307e\u307e\u5909\u66f4\u305b\u305a\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ed6\u306b\u3082\u3001wercker\/nodejs \u3068\u304b wercker\/python \u306a\u3069\u304c\u4f7f\u3048\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30e0\u3067\u4f5c\u6210\u3057\u305f box \u3092\u516c\u958b\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u306e\u3067\u3001\u305d\u3046\u3044\u3063\u305f\u3082\u306e\u306f\u3053\u3061\u3089<\/a>\u3067\u4f7f\u7528\u53ef\u80fd\u306a box \u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u304b\u306a\u3069\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f mysql \u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u4ed6\u306b\u3082\u3001wercker\/postgresql\u3001wercker\/mongodb\u3001wercker\/rabbitmq \u306a\u3069\u3082\u4f7f\u3048\u308b\u3088\u3046\u3067\u3059\u3002\u3053\u3061\u3089<\/a>\u304b\u3089\u4f7f\u7528\u53ef\u80fd\u306a\u3082\u306e\u304c\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n \u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u306a\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002steps \u306e\u4e0b\u306b\u51e6\u7406\u3092\u5217\u6319\u3057\u3066\u3044\u304f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3061\u3089<\/a>\u304b\u3089\u4f7f\u7528\u53ef\u80fd\u306a\u3082\u306e\u304c\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n rvm \u3067\u4f7f\u7528\u3059\u308b ruby \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f 2.0.0 \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n bundle install \u3092\u5b9f\u884c\u3002<\/p>\n services \u3067\u8a18\u8f09\u3057\u3066\u3042\u308b\u60c5\u5831\u3092\u57fa\u306b\u3001wercker \u306e box \u4e0a\u3067\u5b9f\u884c\u3059\u308b rails \u306b\u5fc5\u8981\u306a config\/database.yml \u3092\u9069\u5207\u306b\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n \u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002name \u306e\u90e8\u5206\u306b\u306f\u3001\u51e6\u7406\u306e\u540d\u524d\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u66f8\u304b\u308c\u305f\u540d\u524d\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d3\u30eb\u30c9\u5b9f\u884c\u6642\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n <\/p>\n \u3053\u3053\u3067\u306f\u3001bundle exec rake db:migrate \u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u4f8b\u3067\u3059\u3002<\/p>\n rspec \u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3002<\/p>\n after-steps \u306b\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u30d3\u30eb\u30c9\u7d50\u679c\u3092 hipchat \u306b\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n \u30c6\u30b9\u30c8\u5b9f\u884c\u5f8c\u306b\u3001\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u5834\u5408\u306f\u3001deploy \u4ee5\u4e0b\u306b\u51e6\u7406\u3092\u66f8\u304d\u307e\u3059\u3002heroku \u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u5834\u5408\u306e\u4f8b\u3002 (HEROKU_DEPLOY_KEY \u306f\u74b0\u5883\u5909\u6570)<\/p>\n \u4f8b\u3048\u3070 config \u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3001AWS \u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306a\u3069\u76f4\u63a5\u66f8\u3044\u305f\u3082\u306e\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u308a\u306f\u3057\u305f\u304f\u306a\u3044\u3082\u306e\u3067\u3059\u3002\u305d\u3046\u3044\u3046\u5834\u5408\u3001\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3063\u3066\u66f8\u3044\u3066\u3044\u308b\u5834\u5408\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u305d\u3046\u3044\u3063\u305f\u74b0\u5883\u5909\u6570\u306b\u3064\u3044\u3066\u3082\u3001\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u753b\u9762\u306e Settings \u30bf\u30d6\u304b\u3089\u3001Pipeline \u306e\u9805\u76ee\u306e\u3001\u300cAdd new variable\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n <\/p>\n Environment variable \u306b\u74b0\u5883\u5909\u6570\u540d\u3001Text\u306b\u5909\u6570\u5024\u3092\u5165\u308c\u3066\u300cSave\u300d\u3067\u8a2d\u5b9a\u5b8c\u4e86\u3067\u3059\u3002 <\/p>\n Protected \u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u4fdd\u5b58\u3059\u308b\u3068\u3001\u9375\u30de\u30fc\u30af\u304c\u3064\u3044\u3066\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n <\/p>\n \u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306f\u3001Protected \u306b\u30c1\u30a7\u30c3\u30af\u5165\u308c\u305f\u65b9\u304c\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n \u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002 \u306f\u3058\u3081\u306b \u4eca\u5e74\u306eGW\u306f\u305f\u307e\u3063\u3066\u3044\u308b\u672c\u3092\u8aad\u307e\u306a\u3044\u3068\u3001\u3068\u601d\u3063\u3066\u3044\u308b\u4f50\u3005\u6728\u3067\u3059\u3002 \u30c6\u30b9\u30c8\u3001\u3057\u3066\u307e\u3059\u304b\uff1f\u5f0a\u793e\u3067\u306f\u3001\u3053\u308c\u307e\u3067 Jenkins \u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u305d\u3053\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 Github \u3084 Bitbucket \u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3082\u7121\u6599\u3067CI\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3067\u3001Wercker \u3092\u4f7f\u3044\u59cb\u3081\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001Wercker \u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u73fe\u5728\u30d9\u30fc\u30bf\u671f\u9593\u4e2d\u306e Wercker […]<\/p>\n","protected":false},"author":3,"featured_media":922,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[99],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/106"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":3489,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/106\/revisions\/3489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/922"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u5f0a\u793e\u3067\u306f\u3001\u3053\u308c\u307e\u3067 Jenkins \u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u305d\u3053\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001
\nGithub \u3084 Bitbucket \u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3082\u7121\u6599\u3067CI\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3067\u3001Wercker<\/a> \u3092\u4f7f\u3044\u59cb\u3081\u307e\u3057\u305f\u3002
\u4eca\u56de\u306f\u3001Wercker \u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\u73fe\u5728\u30d9\u30fc\u30bf\u671f\u9593\u4e2d\u306e Wercker<\/h2>\n
\n
https:\/\/twitter.com\/Wercker\/status\/449204933481746432<\/a><\/p>\n\n
Github\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3082\u7121\u6599\u3067\u4f7f\u3048\u308bCI\u3001Wercker\u3092\u4f7f\u3063\u3066rails new\u304b\u3089Heroku\u306e\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u3084\u3063\u3066\u307f\u308b<\/a><\/p>\n
\n\u65b0\u898f\u767b\u9332<\/h2>\n
\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8ffd\u52a0<\/h2>\n
1. Choose a Git provider<\/h3>\n
2. Select a repository<\/h3>\n
3. Add werckerbot<\/h3>\n
4. Setup your wercker.yml<\/h3>\n
\n<\/p>\n5. Let's finish up<\/h3>\n
\n<\/p>\n
\n\u30d3\u30eb\u30c9\u5b9f\u884c<\/h2>\n
\nenvironment variables \u3084\u3089 bundle install \u3084\u3089\u304c\u5b9f\u884c\u3055\u308c\u3066\u2026\u3002<\/p>\n
\nrspec \u3082\u3053\u3093\u306a\u611f\u3058\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002
\n<\/p>\n
\n\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n
\u307e\u305f\u300125\u5206\u4ee5\u4e0a\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u51e6\u7406\u304c25\u5206\u4ee5\u5185\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306a\u3069\u3092\u898b\u76f4\u3057\u3066\u4fee\u6b63\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n
\nwercker.yml<\/h2>\n
box: wercker\/rvm\nservices:\n - wercker\/mysql\nbuild:\n steps:\n - rvm-use:\n version: 2.0.0\n - bundle-install\n - rails-database-yml\n - script:\n name: echo ruby information\n code: |\n echo "ruby version $(ruby --version) running"\n echo "from location $(which ruby)"\n echo -p "gem list: $(gem list)"\n - script:\n name: setup DB\n code: bundle exec rake db:migrate\n - script:\n name: rspec\n code: bundle exec rake spec<\/code><\/pre>\n
box<\/h3>\n
box: wercker\/rvm<\/code><\/pre>\n
services<\/h3>\n
services:\n - wercker\/mysql<\/code><\/pre>\n
build<\/h3>\n
build:\n steps:<\/code><\/pre>\n
rvm-use<\/h4>\n
- rvm-use:\n version: 2.0.0<\/code><\/pre>\n
bundle-install<\/h4>\n
- bundle-install<\/code><\/pre>\n
rails-database-yml<\/h4>\n
- rails-database-yml<\/code><\/pre>\n
script<\/h4>\n
- script:\n name: setup DB\n code: bundle exec rake db:migrate<\/code><\/pre>\n
- script:\n name: rspec\n code: bundle exec rake spec<\/code><\/pre>\n
after-steps<\/h4>\n
after-steps:\n - hipchat-notify:\n token: hipchat \u306e\u30c8\u30fc\u30af\u30f3\n room-id: \u30eb\u30fc\u30e0ID\n from-name: hipchat \u3067\u8868\u793a\u3059\u308b\u540d\u524d<\/code><\/pre>\n
deploy<\/h3>\n
deploy:\n steps:\n - heroku-deploy:\n run: rake db:migrate\n key-name: HEROKU_DEPLOY_KEY<\/code><\/pre>\n
\n\u74b0\u5883\u5909\u6570\u306b\u3064\u3044\u3066<\/h2>\n
\nconfig\/assets.yml \u306e\u4f8b\u3002<\/p>\n\uff08\u4e2d\u7565\uff09\n\n aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>\n aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>\n\n\uff08\u4e2d\u7565\uff09<\/code><\/pre>\n
\n\u8a2d\u5b9a\u3057\u305f\u74b0\u5883\u5909\u6570\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5024\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n
\n\u307e\u3068\u3081<\/h2>\n
\u73fe\u5728 Wercker \u306f\u30d9\u30fc\u30bf\u4e2d\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u4f7f\u3063\u3066\u307f\u305f\u3089\u3068\u3066\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u3066\u3001\u6a5f\u80fd\u3068\u3057\u3066\u306f\u307e\u3063\u305f\u304f\u554f\u984c\u306a\u3044\u3068\u611f\u3058\u307e\u3057\u305f\u3002
\u4eca\u56de\u306f\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u307e\u3067\u3092\u4e2d\u5fc3\u306b\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u30c6\u30b9\u30c8\u5b9f\u884c\u3057\u3066\u30c6\u30b9\u30c8\u304c\u901a\u3063\u305f\u3089\u3001heroku \u306b\u81ea\u52d5\u7684\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3082\u975e\u5e38\u306b\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002
\u307e\u305f\u3001box \u3084 step \u306a\u3069\u3001\u4ed6\u306e\u4eba\u304c\u516c\u958b\u3057\u3066\u3044\u308b\u30ab\u30b9\u30bf\u30e0\u3057\u305f\u3082\u306e\u3082\u5229\u7528\u53ef\u80fd\u306a\u3088\u3046\u306a\u306e\u3067\u3001\u304b\u306a\u308a\u67d4\u8edf\u6027\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002
\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f7f\u3046\u306b\u306f\u3001Travis CI<\/a>\u3084CircleCI<\/a>\u306f\u6709\u6599\u3060\u304b\u3089\u306a\u30fc\u3063\u3066\u3044\u3046\u65b9\u3001\u662f\u975e\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"