Rubicureï¼ããã¸ã®è¦æ¬å¸ã¨ãã¦ã®ãªãã¸ããªã¨ãã¦ãåªãã¦ãï¼
— ã (@ka_) 2014, 7æ 23
ã¨è¨ãããã®ã§èª¿åã«ä¹ã£ã¦ Rubicure ã§ä½¿ã£ã¦ãããã¸ãã¾ã¨ãã¦ã¿ã¾ãã
çµæ§ããããããã®ã§å¿ è¦ã«å¿ãã¦ä½¿ãã°ãããã¨ã
CIç³»
ããããããã¾ããç¡æã§ä½¿ããã®ã¯ãã®è¾ºã
詳ããç¥ããã人ç¨
- CIï¼ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼ãµã¼ãã¹ã¾ã¨ãã»14åï¼ - atskimura-memo
- CircleCIå°å ¥ããã®ã§werckerã¨ã®æ¯è¼ãå«ãã¦ã¾ã¨ã - æææ¥ã¾ã§ã«èãã¦ããã¾ã
Travis CI (Ruby以å¤ã§ã使ãã)
githubã«pushãã¦ãTraviså´ã§ãã¹ããéå§ããã®ãé ãããå人çã«æè¿ã¯ä½¿ããããªãã®ã§ãããè¤æ°ã®rubyã®ãã¼ã¸ã§ã³ãDBã®ç¨®é¡ã§ç°¡åã«ãããªã¯ã¹ãã¹ãåºæ¥ãã®ãèªåã®ç¥ãéãTravis CIãããªãã®ã§Travis CI使ãã¾ãã
ä»ã«ãã£ããããµã«ãªææããªã¼ãº
Travis CIã®å°å ¥ã¯ä¸è¨åç §
Githubã«ãããªãã¸ããªãTravis CIé£æºããæé #junitbook - ããã«ã£ã
ããã¸ã¯READMEã®ä¸çªä¸ã®æ¹ã«è²¼ãä»ãã¦ããã®ãè¦ãããã¨æãã¾ãã
.travis,yml
èªåã¯ãããã風ã«ãããã¨ãå¤ãã§ã
language: ruby rvm: - 2.0.0 - 2.1.2 bundler_args: --jobs=2 script: bundle exec rspec branches: only: - master
- rvm : ãã«ãã§ä½¿ãrubyã®ãã¼ã¸ã§ã³
- æè¿ã¯2ç³»ãµãã¼ããã¦ãã°ããæ°ããã(1.9ç³»æºæ ã ã¨ãã¼ã¯ã¼ãå¼æ°ä½¿ããªãã®ãã¤ãã)
2.0
ã2.1
ã 㨠2.0.x, 2.1.x ã®ä¸çªæ°ãããã¼ã¸ã§ã³ã使ããã
- bundler_args :
bundle install
ã«æ¸¡ããããªãã·ã§ã³- ä¸ã®è¨å®ã ã¨
bundle install --jobs=2
ã¿ããã«å®è¡ããã --jobs
ã¯bundler 1.5.0 rc1ã§è¿½å ããããªãã·ã§ã³ã§bundle installãè¤æ°ã¹ã¬ããå®è¡ã§ãã- nokogiriã®ãããªnative extensionã¯ã³ã³ãã¤ã«ã«æéããããããããªãã¹ãæéãæéãç縮ããããã«
--jobs
ãã¤ãã¦ã¾ã- æ®éã¯2åç®ä»¥éã®bundle installã¯ãã¦ã³ãã¼ãæ¸ã®ãã¼ã«ã«ã«ãããã®ã§æéãããããªããã©ãTravis CIã¯æ¯åã¯ãªã¼ã³ãªç°å¢ãããã«ããå§ããããæéãããã
- ã¨ã¯è¨ãTravis CIã®ãã«ãã§ä½¿ãããã¤ã³ã¹ã¿ã³ã¹ã®ã¹ããã¯ããããªã«é«ããªãï¼ãããªæ°ãããï¼ã®ã§ããããªã«å¤§ããªæ°åã¯ä½¿ã£ã¦ãªãã§ã
- ä¸ã®è¨å®ã ã¨
- branches / only / ã ã§ãã«ãããbranchãæå®
詳ããè¨å®ã¨ã Travis CI: Building a Ruby Project
Tips : Travis CIã§è¤æ°ãã¼ã¿ãã¼ã¹ã§ãã¹ãããæ¹æ³
Gitpeach ã§ã¯
ã®ãããªãã¡ã¤ã«ãç½®ãã¦ããã«ãæã« config/database.yml ã«ã³ãã¼ãããã¨ã§è¤æ°DBã®ãã¹ãããã¦ãã¾ã
language: ruby env: - DB=mysql - DB=postgresql before_script: - "cp config/database.yml.$DB config/database.yml" - "RAILS_ENV=test bundle exec rake db:create db:migrate"
å®éã«ã¯rvmã¨åãã㦠(ruby 2.0.0 or ruby 2.1.2) x (mysql or postgresql) ã®è¨4ãã¿ã¼ã³ã®ãã¹ãããã¦ã¾ã
https://github.com/sue445/gitpeach/blob/master/.travis.yml
rubygems.org (Rubyã®gemã®ã¿)
rubygems.orgã®èªåã®gemã®ãã¼ã¸ã§ãBadgeãããããã¸ã®URLãmarkdownãåå¾ã§ãã¾ã
éç解æ
Coveralls (Ruby以å¤ã§ã使ãã)
ãã¹ãã«ãã¬ãã¸*2ãè¨æ¸¬ã§ãã¾ãã
Githubã®ã¢ã«ã¦ã³ãã§ãã°ã¤ã³å¾ã«ãADD PRIVATE REPOãããADD REPOãã§ãªãã¸ããªãç»é²ï¼publicãªãã¸ããªã¯å¾è ï¼
ç»é²ç´å¾ã«è¨å®æ¹æ³ã表示ããã¾ã
è¨å®å 容 https://github.com/sue445/rubicure/commit/0bd9573c12b75bd7fab278aa1a533df3221ec892
è¨å®å¾ã«ä¸ã®æ¹ã®ãGET BADGE URLSãããããã¸ã®URLãåå¾ã§ãã¾ã
Code Climate (Ruby以å¤ã§ã使ãã)
ã³ã¼ãã®éç解æãã㦠GPA (Grade Point Average = è©ä¾¡å¤) 0ã4.0ã§ã¹ã³ã¢ãåºãã¦ããã¾ãã*3
publicãªãã¸ããªãªãç¡æã§ä½¿ãã¾ãã
githubã®ã¢ã«ã¦ã³ãã§ãã°ã¤ã³å¾ã«ãAdd Open Source Repoãã§ãªãã¸ããªã追å
codeclimateã§ãcoverallsåæ§ãã¹ãã«ãã¬ãã¸ã®è¨æ¸¬ãã§ãã¾ããè¨å®å 容ããããªã«å¤ãããªãã®ã§ã©ã£ã¡ä½¿ã£ã¦ãããã¨æãã¾ããï¼è¨æ¸¬çµæããããªã«å¤ãããªãï¼
è¨å®å 容 https://github.com/sue445/rubicure/commit/c436435e5c029be3dd58b7ed22acb1768c7412f3
GPAã®åã®ä¸ã®ããã¸ã®ç»åããããã¸ã®URLãmarkdownãåå¾ã§ãã¾ã
Gemnasium (Rubyã®ã¿)
Gemfileãgemspecã§ä½¿ã£ã¦ãgemãå¤ããªã£ã¦ãããã¡ã¼ã«ã§éç¥ãã¦ããã¾ãã
Githubã®ã¢ã«ã¦ã³ãã§ãã°ã¤ã³å¾ã«ãADD NEW PROJECTãã§ãªãã¸ããªãç»é²ããã ã
Settings -> Badgeã§ããã¸ã®Markdownãåå¾ã§ãã¾ã
Inch CI (Rubyã®ã¿)
ã©ãã ãã½ã¼ã¹ã³ã¼ãä¸ã«YARDãªã©ã§ããã¥ã¡ã³ããæ¸ãã¦ãããè¨æ¸¬ãã¦ããã
ãããããGithubã®URLãå ¥åããã ãã§è¨å®å®äº
å³ä¸ã®ããã¸ã®ç»åãã¯ãªãã¯ããã°URLãMarkdownã表示ããã¾ã
ãã¾ã
Waffle.io
Githubã®issueãã«ã³ãã³é¢¨ã«ç®¡çã§ãããµã¼ãã¹
githubã®ã¢ã«ã¦ã³ãã§ãã°ã¤ã³å¾ã«ãªãã¸ããªãç»é²ã§ãã¾ã
Project Setting -> Generalããããã¸ã®Markdownãåå¾å¯è½
RubyDoc.info
ããã¸ãããªããã©ä¾¿å©ãªã®ã§ãããç´¹ä»ã
rubygems.orgã«å ¬éããã¦ããgemã®YARDããã¹ãã£ã³ã°ãã¦ãã£ã½ããµã¼ãã¹ãrubygems.orgã«å ¬éãã¦ãã°ãããããå ¬éããã¦ãã
http://rubydoc.info/gems/rubicure/frames
githubã®ãªãã¸ããªãç»é²ãã¦ãå¯è½ï¼rubygems.orgã®å·¡åå¾ ã¤ããæ©ããè¦æåæ´æ°ï¼
å³ä¸ã®Add Projectã§gitã®URLãæå®ããã
[email protected]:<username>/<reponame>git
ã®å½¢å¼ã§ã¯ãªã git://github.com/<username>/<reponame>.git
ã®å½¢å¼ã§ç»é²ããå¿
è¦ãããã®ã§æ³¨æ
http://rubydoc.info/github/sue445/rubicure
便å©ãªããã¸ã®æ¢ãæ¹
ããããªãªãã¸ããªãè¦ãã®ãä¸çªã ã¨æã
ã¾ã¨ã
- ããã¸ãç»é²ãã¦ããã¨æ®ºé¢¨æ¯ãªREADMEãè¯ããã«ãªã
- publicãªãã¸ããªã§ããã°ã ãããç¡æã§ä½¿ããã®ã§ä½¿ãã¹ã
- githubã®ã¢ã«ã¦ã³ãä¸è½ããã