Build daily Build Environment

Source: Internet
Author: User

Recently, several people have been organized to develop a monitoring system. In order to quickly grasp the development progress and control the quality, a daily building environment has been established.

The version control adopts SVN, And the svn library directory is set up in/sdbdata/SVN and SVN environments:

    1. APR:./configure; Make; make test; make install
    2. Apr-util:./configure; Make; make test; make install
    3. SQLite: Download SQLite-amalgamation, decompress it, and upload the directory mV to the Subversion directory.
    4. SVN:./configure -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR
    5. SVN: Make; make install
    6. Start Service: svnserve-d-r/sdbdata/SVN listens on port 3690
    7. Create a version Library: svnadmin create/var/SVN/Repos
    8. Client Access: SVN: // 192.168.24.29/Repos
    9. Custom permissions: svnserve. conf. Enter the account and password in the passwd file.

Execute daily build to Generate Test Case Report and project document. The build script is as follows:

 

Code

 #  ! /Bin/bash  
Curday = 'Date + % Y % m % d % H `
# Start checking out source code
Echo " Begin check out ...... "
SVN checkout File :/// Sdbdata / SVN / Repos / SRC / Back SRC
SVN checkout File :/// Sdbdata / SVN / Repos / Test test
Echo " End check out. "
# Start local test
Echo " Begin local test ...... "
CP 'Find Test - Name \*. T' TMP /
CD TMP
For Name in *. T
Do
Echo $ Name > ../ RPT / Test . Log . $ Curday 2 > & 1
Perl $ Name > ../ RPT / Test . Log . $ Curday 2 > & 1
# Generate Project Document
Tmpname = 'Echo $ Name | Awk - F . ' {Print $1 ;} ' `
Pod2html $ Name > ../ Doc / $ {Tmpname} . Html
# Perl-mtest: harness-e '$ test: harness: verbose = 1; runtests @ argv ;'*. t> .. /rpttest. log. $ curday 2> & 1
Done

 

 

3. output the test report and project documents through Apache for front-end access

Create a connection under the Apache/htdocs directory to point to the document directory

Ln-S/sdbdata/develop/Apache/htdocs/develop

 

 
<Directory "/slview/Apache/htdocs/develop"> options indexes Multiviews ensures that the directory can browse AllowOverride none order allow, deny allow from all </directory>

4. Access to test reports and project documents

Project document access: http: // 192.168.24.29/develop/doc

Test Report access: http: // 192.168.24.29/develop/Rpt

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.