[otrs-cvs] UnitTest/bin UnitTestAutoSetup.pl,1.248,1.249
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments: Update of /home/cvs/UnitTest/bin In directory lancelot:/tmp/cvs-serv19402/bin Modified Files: UnitTestAutoSetup.pl Log Message: Use git for any framework checkouts. Author: mg Index: UnitTestAutoSetup.pl =================================================================== RCS file: /home/cvs/UnitTest/bin/UnitTestAutoSetup.pl,v retrieving revision 1.248 retrieving revision 1.249 diff -2 -u -d -r1.248 -r1.249 --- UnitTestAutoSetup.pl 29 Jan 2013 09:07:30 -0000 1.248 +++ UnitTestAutoSetup.pl 20 Feb 2013 09:17:29 -0000 1.249 @@ -41,7 +41,4 @@ } -# settings -my $CheckOut = 'cvs -z9 -d :pserver:[email protected]:/home/cvs co'; - my @RecommendedFrameworkTests = ( 'Frontend/Basic', @@ -57,5 +54,5 @@ Profile => 'otrs32', Name => 'OTRS 3.2.x CVS', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -69,5 +66,5 @@ Profile => 'OTRSOrderManagement32', Name => 'OTRS 3.2.x CVS + internal OrderManagement', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -126,5 +123,5 @@ Profile => 'itsm32upgraded31', Name => 'ITSM 3.2.x CVS (OTRS 3.2.x CVS) upgraded from ITSM 3.1.x', - Framework => 'HEAD', + Framework => 'master', Packages => [ { @@ -229,5 +226,5 @@ Profile => 'itsm32', Name => 'ITSM 3.2.x CVS (OTRS 3.2.x CVS)', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -303,5 +300,5 @@ Profile => 'faq22', Name => 'FAQ 2.2.x CVS (OTRS 3.2.x CVS)', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -338,5 +335,5 @@ Profile => 'survey22', Name => 'Survey 2.2.x CVS (OTRS 3.2.x CVS)', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -389,5 +386,5 @@ Profile => 'timeaccounting22', Name => 'TimeAccounting 2.2.x CVS (OTRS 3.2.x CVS)', - Framework => 'HEAD', + Framework => 'master', Packages => [ 'https://opms.otrs.com/otrs/:public.pl?Action=PublicOPMSTestBuild&NoDoc=1&Package=UnitTest', @@ -865,24 +862,26 @@ # setup system - print STDOUT "NOTICE: cvs co\n"; - - if ( !-d "/var/tmp/OTRSCVSCache/$Scenario->{Framework}" ) { - - my $CO = $CheckOut . " -r $Scenario->{Framework} otrs"; - - system( - "cd /var/tmp/ && rm -rf OTRSCVSCO/ && mkdir OTRSCVSCO/ && cd OTRSCVSCO/ && $CO > /dev/null" - ) && next SCENARIO; - - system("cd /var/tmp/ && mkdir OTRSCVSCache"); + print STDOUT "NOTICE: git clone\n"; - system("mv /var/tmp/OTRSCVSCO/otrs /var/tmp/OTRSCVSCache/$Scenario->{Framework}") + # Create initial git clone + if ( !-d "/var/tmp/OTRSGitCache/otrs" ) { + print STDOUT "NOTICE: cd /var/tmp/ && mkdir OTRSGitCache\n"; + system("cd /var/tmp/ && mkdir OTRSGitCache"); + print STDOUT + "NOTICE: cd /var/tmp/OTRSGitCache && git clone git://git.otrs.com/otrs/otrs.git\n"; + system("cd /var/tmp/OTRSGitCache && git clone git://git.otrs.com/otrs/otrs.git") && next SCENARIO; } - system("cd /var/tmp/OTRSCVSCache/$Scenario->{Framework}/ && cvs -q -z9 upd -d") + print STDOUT + "NOTICE: cd /var/tmp/OTRSGitCache/otrs && git checkout $Scenario->{Framework}\n"; + system("cd /var/tmp/OTRSGitCache/otrs && git checkout $Scenario->{Framework}") && next SCENARIO; + print STDOUT "NOTICE: cd /var/tmp/OTRSGitCache/otrs && git pull\n"; + system("cd /var/tmp/OTRSGitCache/otrs && git pull") + && next SCENARIO; + system( - "cd /opt/ && rm -rf otrs/ && cp -r /var/tmp/OTRSCVSCache/$Scenario->{Framework} /opt/otrs" + "cd /opt/ && rm -rf otrs/ && cp -r /var/tmp/OTRSGitCache/otrs /opt/otrs" ) && next SCENARIO; --------------------------------------------------------------------- OTRS mailing list: cvs-log - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/cvs-log To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log