TracLightning 2.0.8 ãã TracLightning3.1.1 ã¸ã®ã¢ããã°ã¬ã¼ãæã®ã¡ã¢ (with TestLink)
ç´1å¹´ã®ããã¸ã§ã¯ãéå§åã®æºåã¨ãã¦ãTracã®ãã¼ã¸ã§ã³ã¢ããããã£ã¦ã¿ã¾ãããUIããããããã¦ãã£ãããã§ãã
段åãã®æ¦è¦
- ããã¯ã¢ãã
- TracLightning ãã¼ã¸ã§ã³ã¢ãã
- TracLightning ãæ°è¦ã¤ã³ã¹ãã¼ã«
- httpd.conf ç·¨é
- DB UpgradeãWiki Upgrade
- ãã®ä»ä½æ¥
- TestLink対å¿
- httpd.conf ç·¨é
- 稼å確èª
(1) ããã¯ã¢ãã
ããã¨ããã¨ãã®ããã«åãã¾ãã
- C:\TracLight\CollabNetSVN\httpd\conf\httpd.conf
- C:\TracLight\python\share\trac\conf\trac.ini
- projects ãã£ã¬ã¯ããªãSVNã¨Tracã®ãã¼ã¿ããã«ãã¨ããã¯ã¢ããã§ãã
C:\TracLight\projects ãã£ã¬ã¯ã㪠⣠svn â â£<åããã¸ã§ã¯ã> ⣠trac â â£<åããã¸ã§ã¯ã> â ⣠conf â â â trac.ini â ⣠db â â trac.db
(2-1) æ°è¦ã¤ã³ã¹ãã¼ã«
- ãµã¼ãã¹ãè½ã¨ã
- ApacheMonitorãããã£ã¦ãããè½ã¨ã
- TracLightning ã¢ã³ã¤ã³ã¹ãã¼ã«
- TracLightning ã¤ã³ã¹ãã¼ã©ã¼ãå®è¡
- ãApacheã®è¨å®ãä¸æ¸ããããã®ãã§ãã¯ããã¯ã¹ã«ãã§ãã¯ãã¦ã¤ã³ã¹ãã¼ã« ï¼ (ãã¤ãã¼ãã¼ã¸ã§ã³UPã®ã¨ãã¯ãã§ãã¯ãå¤ããä»åã¯ã¢ã¸ã¥ã¼ã«ã®å ¥ãæ¿ããå¤ãã£ãã®ã§)
- ãµã¼ãåèµ·å
(2-2) httpd.conf ç·¨é
èªè¨¼ãå¿ é ã«ãªãããã«è¿½å ãã¾ãããApacheã®åèµ·åã§åæ ããã¾ãã
AuthType Digest AuthName trac AuthUserFile "C:\TracLight\projects\trac.htdigest" Require valid-user
(2-3) DBã¢ããã°ã¬ã¼ããWikiã¢ããã°ã¬ã¼ã
Trac Lightningã®ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ãã®ä¸ã®projects\tracã®ä¸ã®åããã¸ã§ã¯ãã«å¯¾ãã¦ã 次ã®ããã«ãã¦ã¢ããã°ã¬ã¼ããå®è¡ãã¾ã
> trac-admin C:\TracLight\projects\trac\<åããã¸ã§ã¯ã> upgrade
> trac-admin C:\TracLight\projects\trac\<åããã¸ã§ã¯ã> wiki upgrade
(2-4-1) ãã®ä»ä½æ¥ Subversion é¢é£ã®ä¸å ·å対å¿
ã³ãããèªä½ã¯ã§ãã¦ãããã®ã®âã®ãããªã¨ã©ã¼ãã§ã¦æ°æã¡æªãã®ã§ã対å¿ãã¾ãã
ã¨ã©ã¼: post-commit hook failed (exit code 2) with output:
ã¨ã©ã¼: C:\TracLight/python/python.exe: can't open file 'C:\TracLight/python-lib/trac/contrib/trac-post-commit-hook': [Errno 2] No such file or directory
trac-post-commit-hook ã¨ãããã¡ã¤ã«ãここãããã¦ã³ãã¼ããã¦ãC:\TracLight\python-lib\trac\contrib ã®é
ä¸ã«ããã¾ãã
(2-4-2) ãã®ä»ä½æ¥ ã«ã¹ã¿ã ãã£ã¼ã«ã移è¡
Tracã®å
±éè¨å®ã ã£ããdue_assign(éå§äºå®æ¥)ãdue_close(çµäºäºå®æ¥)ãcomplete(é²æç(%))ãå
±éè¨å®ã§ãªããªãã¾ããã
使ã£ã¦ããé
ç®ãªã®ã§ãåå¥ããã¸ã§ã¯ãã®trac.iniã«è¿½è¨ãã¾ããã
詳ããã¯こちら
(2-4-3) ãã®ä»ä½æ¥ æ¥ä»ãã£ã¼ã«ã対å¿
èªåã§è¿½å ããã«ã¹ã¿ã å±æ§ãã«ã¬ã³ãã¼ã®é¨åã使ããããã«ãªã£ãã®ã§ãtrac.iniãç·¨éãã¾ãã(3.1.1ã§ã¯ç®¡çç»é¢ããã¯ã§ãã¾ãã & Tracã®åèµ·åãå¿
è¦)
(ä¾)
due_assign = text due_assign.date = true due_assign.date_empty = on due_assign.label = éå§äºå®æ¥ due_assign.order = 0
(2-4-4) ãã®ä»ä½æ¥ Wiki ã¢ããã°ã¬ã¼ã / DBå¤æ´å¯¾å¿ã»ã¬ãã¼ãSQL
æ¥ä»ã®ã«ã©ã (created, modified, date, time)ãdateãstrftimeãªã©ã®æ¥ä»é¢é£ã®é¢æ°ã§å¤æãã¦ããå ´åã«ã¯ãå¤æå ã®å¤ã1000000ã§å²ããªããã°æ¥ä»é¢æ°ã§ã®å¤æãåºæ¥ãªããªã£ã¦ãã¾ããå ·ä½çã«dateé¢æ°ã®å ´åã«ã¯ä»¥ä¸ã®ããã«ããå¿ è¦ãããã¾ãã
0.11以åï¼ date(time,'unixepoch','localtime')
0.12以éï¼ date(time/1000000,'unixepoch','localtime')
strftimeé¢æ°ã®å ´åã«ã¯ããã«æ³¨æãå¿ è¦ã§ãç´æ¥å¤ãå²ãã¨ã¬ãã¼ãã§ã¨ã©ã¼ã¨ãªã£ã¦ãã¾ããããä¸æ¦dateé¢æ°ã§å¤æå¾ã«åå¤æãè¡ãå¿ è¦ãããã¾ãã
0.11以åï¼ strftime('%Y/%m/%d', time,'unixepoch''localtime')
0.12以éï¼ strftime('%Y/%m/%d', date(time/1000000,'unixepoch','localtime'))
(3) TestLink対å¿ã»httpd.conf ç·¨é
Apacheã«åå±
ããã¦ããTestLinkã®è¨å®ã追å ãã¾ãã
#LoadModuleè¨å®è¿½å
LoadModule php5_module c:/PHP/php5apache2_2.dll
#IfModule dir_module ã«è¿½å
index.php
#mime_module 㫠追å
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
#LocationMatchå¤æ´
#
(4) 稼å確èª
ä»ã®ããã¸ã§ã¯ãã§ä½¿ãç¯å²ã§ã®ç¢ºèªãªã¹ãã¯ãããªæãã§ãã
- ãã¼ã¿ä¿å
¨
- ã¦ã¼ã¶èªè¨¼ãã¼ã¿
- SVNã½ã¼ã¹ã³ã¼ã
- wiki
- ãã±ããããã¤ã«ã¹ãã¼ã³
- ã¢ããªç¨¼å確èª
- TortoiseSVN
- ãã§ãã¯ã¢ã¦ã
- æ´æ°ã³ããã
- æ°è¦ä½æã³ããã
- åé¤ã³ããã
- Eclipse ãã
- ãã§ãã¯ã¢ã¦ã
- æ´æ°ã³ããã
- æ°è¦ä½æã³ããã
- åé¤ã³ããã
- ãã±ãã ãã
- éå»åç §ä¼
- æ°è¦ä½æ
- Tracãã©ã°ã¤ã³ç¢ºèª
- TortoiseSVN
- TestLink 稼å
åèã«ããã¦ããã ããã¨ãã
- Trac Lightning ããã¸ã§ã¯ã TracLightning2.xããTracLightning3.0.xã¸ã®ã¢ããã°ã¬ã¼ãã®æ³¨æ
http://sourceforge.jp/projects/traclight/wiki/TracUpgrade3_0_0
- SVNé¢é£ä¸å ·å
http://sourceforge.jp/ticket/browse.php?group_id=2810&tid=24143
- TracLightning ã® Apache ç°å¢ã§ TestLink ãåãã
http://d.hatena.ne.jp/kaorun55/20090415
- TracLightning3.0.8
http://www.srcw.net/wiki/index.php?TracLightning3.0.8
- Trac Lightningã«ã¤ãã¦