Djangoã§ãã¹ããæ¸ãã¦ããã¹ãã¬ãã¼ãã»ã«ãã¬ãã¸ã¬ãã¼ããåºåããJenkinsã«ãã¹ãçµæãåºåããã¾ã§ã®ã¡ã¢ 以ä¸ã®è¨äºãåèã«ããã¦ãããã¾ããã Django ã§ã®ãã¹ã åæ Bitbacketã¨Jenkinsãé£æºæ¸ã¿ã ãã¼ã«ã«ç°å¢ããBitbacketã¸pushããã¨ãèªåã§Jenkinsã®ãã«ããèµ°ãããã¹ããå®è¡ãããããã«ãªã£ã¦ããç¶æ ã ãããã®ç°å¢æ§ç¯ã«ã¤ãã¦ã¯ä»¥ä¸ã®ããã°ãåç §ã®ãã¨ã Bitbucketã®private repositoryã¨Jenkinsã®é£æºã«ã¤ã㦠Djangoã§ã®ãã¹ãç°å¢ã®æ§ç¯ ã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã« pipã§django-noseã¨coverageãã¤ã³ã¹ãã¼ã«ã 以åãunittest-xml-reportingã使ã£ã¦åããããªç°å¢ãä½ã£ããã¨ããã£ããã©ãdjango-noseã®æ¹ãè²ã ãããªããã£ãæ°ãããã
社å å¤ã§ã¡ããã¡ããèãããã®ã§ã¡ã¢ã åç½®ã GitHubã使ã£ã¦ãå ´å ã©ã¤ãã©ãªãä½ã£ã¦ãå ´å Travis CIãé¸æããçç± 2020/4/21è¿½è¨ Travis CIãé¸æããªãçç± ã¢ããªãä½ã£ã¦ãå ´å CircleCIã¨Werckerã®å ±éç¹ CircleCIã¨Werckerã®æ©è½å·®ç° GitLabã使ã£ã¦ãå ´å GitLab CIã®åªä½ç¹ Jenkinsãªã©ã使ã£ãæ¹ãããå ´å 追è¨ï¼2018/12/8 åç½®ã 100%èªåã®ä¸»è¦³ãªã®ã§åã£ã¦ã¾ã SaaSããªã³ãã¬ãªãSaaSæ´¾ãï¼èªåã§ãµã¼ãã®é¢å身ãããªãï¼ èªåã使ã£ããã¨ããªããã®ã¯ç´¹ä»ãã¦ãã¾ãã ä»åç´¹ä»ãã¦ãTravis CI, CircleCI, Wercker, GitLab CI, Jenkinsã«é¢ãã¦ã¯ä»äºã趣å³ã§å3ã4å¹´ãããã¯ä½¿ã£ã¦ãã¯ã GitHubã使ã£ã¦ãå ´å ã©ã¤ãã©ãªãä½ã£ã¦ãå ´å
èæ¯ ç¤¾å ãã«ããã¹ã¯ï¼Redmineï¼ã«ããã管ç対å¿ã®æ¥åãå¹çåãããµã¼ãã¹ã¬ãã«ãä¸ããã ç¾ç¶ã®èª²é¡ 起票ããããã±ããã®è§£æ±ºã«ãããæéãé·ã åå ã®ä¸ã¤ã¯ãæ£ããæ å½è ã«ãã±ãããå²å½ã¦ãããæ»çãããã¨ãããã㨠å¦çãããªããã±ããã¯ãã«ãã´ãªãæ£ããè¨å®ããã¦ããªããã®ãå¤ãã£ã å¼ç¤¾ã®éç¨ã¨ãã¦ã«ãã´ãªåä½ã§å°éçãªæ å½è ãå²ãå½ã¦ããã¦ããã®ã§ãã«ãã´ãªãééãã¨ããåããå¢ãã解決ã¾ã§ã«æéãããã£ã¦ãã¾ãã¾ã Redmineã«ã¤ãã¦ã¯ä¸è¨ãåç §ä¸ãã http://redmine.jp/overview/ ä½ã£ããã® Redmineã«ãã±ãããæ°è¦ã«èµ·ç¥¨ããã¨ãéå»ã®ãã¼ã¿ããèªåçã«ã«ãã´ãªãè¨å®ããä»çµã¿ãDeepLearningãç¨ãã¦ä½æãã¾ããã ããã«ããæ£ããæ å½è ã«ãã±ãããå²ãå½ã¦ããããã±ããã®å¹³å解決æéã®åä¸ãçãã¾ãã ãã®ä»çµã«å¯¾ãã¦
ã¯ããã« ä»äºã§circleciããªãã¨ãªã¼ã使ã£ã¦ãã¾ãã 使ãããªããããªã£ãã®ã§æ¹ãã¦å人ã§ããããã試ãã¦ã¿ãã¡ã¢ã§ãã ã¢ã¸ã§ã³ã CircleCIã¨ã¯ CIã£ã¦ãªããã CircleCIã£ã¦ãªããã CircleCIã®ç¹å¾´ CircleCIã®æé CircleCIã«å¿ è¦ãªãã® CircleCIã使ã£ã¦ã¿ã CircleCI/githubã®é£æºã確èªãã 1. CircleCIã¨ã¯ ããã§ã¯CircleCIã£ã¦ãããªãã®ï¼ã¨ããããããªå 容ãç°¡åã«ã¾ã¨ãã¦ããã¾ãã CIã£ã¦ãªããã CI(continuous integration: ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³)ã¨ã¯ãªãããã¨ããã®ã¯ç¥ã£ã¦ãåæã§ããä¸å¿è¼ãã¦ããã¾ãã å®å®ã®wikipediaããå¼ç¨.. CIï¼è±: continuous integrationï¼ã¨ã¯ã主ã«ããã°ã©ãã¼ã®ã¢ããªã±ã¼ã·ã§ã³ä½ææã®å質æ¹åãç´æ
æ¦è¦ 1ã¶æãããä¸ç·ã«ãä»äºãã¦ããå¤å½äººããã°ã©ãããã観å¯ããè¨é²ã§ãã ã¹ãã㯠æ§å¥: ç·æ§ ä»äºå 容: ãã¡ã®ä¼ç¤¾ã®ããã°ã©ãã¯ããã£ãã JS çã®ããã³ãã¨ã³ãã¨ã Java çã®ããã¯ã¨ã³ãã¨ã³ã¸ãã¢ã«ãããã¦ããã®ã§ãããå½¼ã¯ã©ã¡ãããã£ã¦ããããã§ãã 好ããªé£ã¹ç©: ã¯ã¡ã¿ã¤ ãã¾ã«ããã¾ããã®ããã«ã¯ã¡ã¿ã¤ãèãã¦ãã¾ããã æ§æ ¼ å½¼ã¯ããã©ããããå±ã§ãã ååã® Windows ã¦ã¼ã¶ã®æä¼ãããã¦ããæã "C:Â¥Program FilesÂ¥..." ã¿ãããªãã¹ãæã¡ãªããããããã©ãããã ãã ããã©ãããã 㨠100åãããã¤ã¶ããã¦ãã¾ããã (æ®æ®µã®å½¼ã®ç°å¢ã¯ mac ãªã®ã§ /usr/local/bin) ãã¹ã¯ã¼ããè¦ããã®ãããã©ãããã®ã§ 1Password ã§ç®¡çãã¦ããããã§ãã PC ã¹ãã㯠ãã·ã³: Macbook Pro ã¡
1.対象ãããã¯ãã®å ¨ä½å質å®ç¾© 2.ä»æ§å質ã®æ ä¿ 3.ãã¹ãããã¼ã®æ´å 4.ãã¹ãè¨ç»ã»ãã¹ãè¨è¨ä½æ 5.ãã¹ãä»æ§æ¸ä½æã»å®æ½ 6.ãªãªã¼ã¹åºæºä½æã»ãªãªã¼ã¹å¤æ 7.ãããã¯ãã®ä¸å ·ååæãä»æ§æ¹åæ¥å 8.æåãã¹ãã¨èªåãã¹ãã®åãåã 9.QAã¨ã³ã¸ãã¢æ¡ç¨æ´»åããã¹ããã³ãã¼ããã¹ã¿ã¼ã®æ¥å管çãQAã¤ãã³ãç»å£ 10.ä»ãã¼ã ã¨ã®ã³ãã¥ãã±ã¼ã·ã§ã³ï¼å ±éèªèï¼ å ¨ä½ã®ãã¹ãç¯å²ã¨ãã¦ããåä½ãã¹ãã ã¯åºæ¬ãéçºã¨ã³ã¸ãã¢ãæ ä¿ãããããçµåãã¹ãã 以éã¯ã©ãããã®ãï¼ ãåä½ãã¹ãã ã¯ãé¢æ°ãã¡ã½ãããåã ã®æ©è½ãæ£ããæããã¦ãããã©ãããæ¤è¨¼ãããã¹ãã«ãªãã¾ãã 主ã«ããJUnitããªã©ã®Xunitç³»ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãç¨ãã¾ãã â»ãããã¯ããæ¡ä»¶ã«ãã£ã¦ã¯QAã¨ã³ã¸ãã¢ãæ å½ãããã¨ãããã¾ãã ãã°ä¿®æ£ã³ã¹ããä¸ããç®çãããã¾ãã ããã
PHPUnitãç¨ããåä½ãã¹ãã®ã³ã¼ããJenkinsã§èµ·åãã¦ã³ã¼ãã«ãã¬ãã¸çã¨ãã¹ãçµæã®åè¾¼ãè¡ãã¾ãããã Yii2ããã¯ãCodeceptionãã¤ã³ã¹ãã¼ã«ãã¦åä½ãã¹ããæ©è½ãã¹ããåãå ¥ããã¹ããè¡ãããã§ãã ãã£ãããªã®ã§Codeceptionã§ãã¹ããæ¸ãã¦Jenkinsã¨é£æºããã¦ã¿ã¾ãããã ãã¹ãã®æºå αçã®Yii2ã ã¨suggestã§è¨è¿°ããã¦ããã®ã§ãæ¹ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«å¾ã«ãã¹ãã®æºåãè¡ã£ã¦èµ·å確èªã¾ã§è¡ã£ã¦ããã¾ãããã ã¢ããªã±ã¼ã·ã§ã³ãã£ã¬ã¯ããªã§æä½ãã¦ä¸ãã $php composer.phar require --dev "codeception/codeception: 1.8.*@dev" "codeception/specify: *" "codeception/verify: *" >Loading comp
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}