2014-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ããã«ã¡ã¯ãfluentdæ´2é±éã§ãï¼æ¨æ¶ï¼ ä¼ç¤¾ã§Gitlabã¨ChatWorkã使ã£ã¦ãã®ã§é£æºãã¦ã¿ã¾ãã ã´ã¼ã« Gitlabã®ãªãã¸ããªãæ´æ°ããããChatWorkã«éç¥ãæµã fluentdã«è³ãã¾ã§ã«èããæ§æ gitlabã®webhookãåãã¦ChatWorkã«éç¥ããã¢ããªãä½ã åâ¦
annotate_modelsã®ç´¹ä» annotate_models ã使ãã¨modelã«ã¹ãã¼ãæ å ±ãä»å ããã¦è¦ããããªãã®ã§èªåã®è¦³æ¸¬ç¯å²ã ã¨ãã使ããã¦ãã¾ãã # == Schema Information # # Table name: users # # id :integer not null, primary key # gitlab_user_id :integâ¦
RSpecã§ä¸æãã£ã¬ã¯ããªãä½ããµã³ãã« - ããã«ã£ã 㧠gemåããã»ã©ã®ããªã¥ã¼ã ããªãã®ã§gistã§å ¬é ã¨æ¸ãããã®ã®ã rake_shared_context ãè¦ã¦ shared_context ã ãã®gemãããããªãã¨æã£ã¦gemåãã¦ãªãªã¼ã¹ãã¾ããã github: https://github.â¦
ãã¡ã¤ã«ãä½ãã¡ã½ããã®ãã¹ãããããã¦rspecã§ä¸æãã£ã¬ã¯ããªã使ãããã£ãã®ã§ããããããµã³ãã«ããªãã¦èªåã§ä½ãã¾ãã*1 ï¼JUnitã® TemporaryFolder ã«ç¸å½ãããã®ãã»ããã£ãï¼ around ã¯ãã¹ãã®åå¾ã«å ±éã®å¦çãæã¿ããæã«ä½¿ãhook beâ¦
database.ymlã£ã¦æ¸ãã¦ã¾ãããã¡ã¤ã«ãªããªãã§ãããã¾ã åæ èªåã®ãã«ãã¹ã¯ãªããã ã¨ãããã風ã«ãããã¨ãå¤ãã§ã # æåã«Jenkinsç¨ã®DBæ¥ç¶æ å ±ãæ¸ãããdatabase.ymlãä½ã cp config/database.yml.jenkins config/database.yml # ãã¨ã¯æ®â¦