CN105630569A - Software source code processing method and device and electronic equipment - Google Patents

Software source code processing method and device and electronic equipment Download PDF

Info

Publication number
CN105630569A
CN105630569A CN201510954282.3A CN201510954282A CN105630569A CN 105630569 A CN105630569 A CN 105630569A CN 201510954282 A CN201510954282 A CN 201510954282A CN 105630569 A CN105630569 A CN 105630569A
Authority
CN
China
Prior art keywords
source code
video file
target source
software
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510954282.3A
Other languages
Chinese (zh)
Inventor
单丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Jiangduoduo Technology Co ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510954282.3A priority Critical patent/CN105630569A/en
Publication of CN105630569A publication Critical patent/CN105630569A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis

Abstract

The embodiment of the invention discloses a processing method and a device of a software source code and electronic equipment, wherein the method comprises the steps of downloading an object source code from a server which stores a source code, wherein the object source code is the source code of software to be issued, configuring a compiling tool corresponding to the object source code according to the code type of the object source code, compiling the object source code into a visual file through the compiling tool, and copying the visual file into an object path which is obtained from the object source code in advance when the visual file is compiled successfully so as to finish the issuing of the software to be issued. By implementing the embodiment of the invention, the compiling operation and the issuing operation are automatically executed aiming at the source code after the source code of the software to be issued is downloaded, the corresponding instruction does not need to be manually input, the time for manually inputting the instruction is saved, the wrong instruction is prevented from being manually input, and the efficiency and the reliability of software issuing can be improved.

Description

The processing method of a kind of software source code, device and electronic equipment
Technical field
The present invention relates to software distribution technology field, be specifically related to the processing method of a kind of software source code, device and electronic installation.
Background technology
Cruisecontrol is a kind of continuous integrating instrument, and it is called for short CC, it mainly provides the continuous integrating based on Version change perceived or timing every day, and provides continuous integrating report, mail Email and Linux instant messaging service server Jabber etc. mode to notify related personnel. But, in the process that the source code of software to be released is operated by Cruisecontrol, it is both needed to related personnel and is manually entered relevant operational order, it reduce the efficiency that software is issued.
Summary of the invention
The embodiment of the invention discloses the processing method of a kind of software source code, device and electronic installation, it is possible to the problem solving how to improve software efficiency for issuing.
Embodiment of the present invention first aspect discloses the processing method of a kind of software source code, and described method includes:
Downloading target source code from the server of storage source code, wherein, described target source code is the source code of software to be released;
Type of code according to described target source code configures the compilation tool corresponding with described target source code;
By described compilation tool, described target source code compilation is become video file;
When described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, to complete the issue of described software to be released.
In the first possible implementation of embodiment of the present invention first aspect, described described video file is copied in advance from described target source code obtain destination path in after, described method also includes:
When being pre-configured with the AutoPlay function for described video file, run described video file; Or
When not being pre-configured with the AutoPlay function for described video file and when receiving the operating instruction for described video file, run described video file according to described operating instruction.
The first possible implementation in conjunction with embodiment of the present invention first aspect or embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, described download target source code from the server of storage source code, including:
Obtaining the download instruction for described target source code, wherein, described download instruction includes the identification information of described target source code;
According to described download instruction, download, from the server of storage source code, the described target source code that described identification information identifies.
The first possible implementation in conjunction with embodiment of the present invention first aspect or embodiment of the present invention first aspect, in the third possible implementation of embodiment of the present invention first aspect, described download target source code from the server of storage source code, including:
Obtain current time;
When described current time arrives Preset Time, from the server of storage source code, download described target source code.
The first possible implementation in conjunction with embodiment of the present invention first aspect or embodiment of the present invention first aspect, in the 4th kind of possible implementation of embodiment of the present invention first aspect, it is described when described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, with complete described software to be released issue before, described method also includes:
Generate the compiling journal file for described video file;
Judge whether the error identification in described compiling journal file and Warning Sign are zero, if, it is determined that described video file compiles successfully.
In conjunction with embodiment of the present invention first aspect, in the 5th kind of possible implementation of embodiment of the present invention first aspect, described method also includes:
When described video file does not compile successful, exporting prompting message, described prompting message is used for pointing out described video file to compile unsuccessfully.
Embodiment of the present invention second aspect discloses the process device of a kind of software source code, and described device includes download unit, dispensing unit, compilation unit and copy cell, wherein:
Described download unit, for downloading target source code the server from storage source code, wherein, described target source code is the source code of software to be released;
Described dispensing unit, configures the compilation tool corresponding with described target source code for the type of code according to described target source code;
Described compilation unit, for becoming video file by described compilation tool by described target source code compilation;
Described copy cell, for when described video file compiles successfully, copying in the destination path obtained from described target source code in advance, to complete the issue of described software to be released by described video file.
In the first possible implementation of embodiment of the present invention second aspect, described device also includes running unit, wherein:
Described running unit, for when being pre-configured with the AutoPlay function for described video file, run described video file, or when not being pre-configured with the AutoPlay function for described video file and when receiving the operating instruction for described video file, run described video file according to described operating instruction.
The first possible implementation in conjunction with embodiment of the present invention second aspect or embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described download unit includes obtaining subelement and lower subelements, wherein:
Described acquisition subelement, for obtaining the download instruction for described target source code, wherein, described download instruction includes the identification information of described target source code;
Described lower subelements, for according to described download instruction, downloading, from the server of storage source code, the described target source code that described identification information identifies.
The first possible implementation in conjunction with embodiment of the present invention second aspect or embodiment of the present invention second aspect, in the third possible implementation of embodiment of the present invention second aspect, described download unit includes obtaining subelement and lower subelements, wherein:
Described acquisition subelement, is used for obtaining current time;
Described lower subelements, for when described current time arrives Preset Time, downloading described target source code from the server of storage source code.
In conjunction with the first possible implementation of embodiment of the present invention second aspect or embodiment of the present invention second aspect, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described device also includes generating unit and judging unit, wherein:
Described generation unit, for when compiling successfully when described video file described in the execution of described copy cell, described video file is copied in the destination path obtained from described target source code in advance, with complete described software to be released issue before, generate the compiling journal file for described video file;
Described judging unit, for judging whether error identification in described compiling journal file and Warning Sign are zero, if, it is determined that described video file compiles successfully.
In conjunction with the first possible implementation of embodiment of the present invention first aspect or embodiment of the present invention first aspect, in the 5th kind of possible implementation of embodiment of the present invention first aspect, described device also includes output unit, wherein:
Described output unit, for when described video file does not compile successful, exporting prompting message, described prompting message is used for pointing out described video file to compile unsuccessfully.
The embodiment of the present invention third aspect discloses a kind of electronic equipment, described electronic equipment includes: housing, processor, memorizer, circuit board and power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, described processor and described memorizer are arranged on described circuit board, described power circuit is powered for each circuit or the device for described electronic equipment, described memorizer is used for storing executable program code, described processor runs the program corresponding with described executable program code by reading the executable program code of storage in described memorizer, for performing following steps:
Downloading target source code from the server of storage source code, wherein, described target source code is the source code of software to be released;
Type of code according to described target source code configures the compilation tool corresponding with described target source code;
By described compilation tool, described target source code compilation is become video file;
When described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, to complete the issue of described software to be released.
Embodiment of the present invention fourth aspect discloses a kind of storage medium, and wherein, described storage medium is used for storing application program, and described application program is for operationally performing the processing method of a kind of software source code disclosed in embodiment of the present invention first aspect.
The embodiment of the present invention the 5th aspect discloses a kind of application program, and wherein, described application program is for operationally performing the processing method of a kind of software source code disclosed in embodiment of the present invention first aspect.
In the embodiment of the present invention, target source code is downloaded from the server of storage source code, wherein, this target source code is the source code of software to be released, type of code according to this target source code configures the compilation tool corresponding with this target source code, by this compilation tool, this target source code compilation is become video file, when this video file compiles successfully, this video file is copied in the destination path obtained from this target source code in advance, to complete the issue of software to be released. Implement the embodiment of the present invention after having downloaded the source code of software to be released, automatically perform compilation operations for this source code and issue operation, without being manually entered the instruction of correspondence, save the time being manually entered instruction and avoid the instruction being manually entered mistake, it is possible to increase the efficiency of software issue and reliability.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, the accompanying drawing used required in embodiment will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the processing method of a kind of software source code disclosed in the embodiment of the present invention;
Fig. 2 is the structural representation processing device of a kind of software source code disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation processing device of the disclosed another kind of software source code of the embodiment of the present invention;
Fig. 4 is the structural representation processing device of the embodiment of the present invention another software source code disclosed;
Fig. 5 is the structural representation processing device of the embodiment of the present invention another software source code disclosed;
Fig. 6 is the structural representation processing device of the embodiment of the present invention another software source code disclosed;
Fig. 7 is the structural representation of a kind of electronic equipment disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the invention discloses the processing method of a kind of software source code, device and electronic equipment, automatically can perform compilation operations for the source code downloaded and issue operation, without being manually entered the instruction of correspondence, save the time being manually entered instruction and avoid the instruction being manually entered mistake, it is possible to increase the efficiency of software issue and reliability. It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of the processing method of a kind of software source code disclosed in the embodiment of the present invention. Wherein, method shown in Fig. 1 can be realized by Jenkins, Jenkins is a kind of continuous integrating instrument based on Java exploitation, it can provide more friendly user interface, this operates interface simpler, it is easy to left-hand seat for a user, for Cruisecontrol, workable and can process data quickly; Function built-in for Jenkins provides a great convenience, only need user to click on a user interface when major part, and newly-built (build) of Cruisecontrol completes by creating config.xml, it can only provide very limited amount of function, needs user to manually complete a lot of work when major part; Jenkins has substantial amounts of plug-in unit (Plugin), and the plug-in unit of Cruisecontrol is little; User interface friendly for Jenkins allows learning cost tail off, it is possible to make user start working within the shortest time; Jenkins achieves the automatization of whole flow process, from loading source code to compiling source code into video file, then install to video file is copied in the environment specified again, finally carry out testing results, this increase whole development process so that developer better grasps and controls development process. As it is shown in figure 1, the processing method of this software source code may comprise steps of:
S101, from storage source code server download target source code.
In the embodiment of the present invention, this target source code is the source code of software to be released. Concrete, can by the software developer address according to server and obtained the user name of server mandate and user cipher logs in this server and the target source code of software to be released is uploaded to this server so that this server stores this target source code.
In the embodiment of the present invention, this target original code can being stored after downloading complete target source code, wherein, the routing information of this target original code storage can by issuing personnel depaly, can also being indicated by target source code, the embodiment of the present invention does not limit.
As the optional embodiment of one, from the server of storage source code, download target source code may include that
Obtaining the download instruction for above-mentioned target source code, wherein, this download instruction can include the identification information of above-mentioned target source code or the identification information of software to be released;
According to this download instruction, from the server of storage source code, download the above-mentioned target source code that identification information identifies.
This optional embodiment when issue personnel are known and be there is software to be released, can trigger, by inputting the mode of download instruction, the target source code downloading software to be released.
As the optional embodiment of another kind, downloading target source code from the server of storage source code can also include:
Obtain current time;
When current time arrives Preset Time, from the server of storage source code, download above-mentioned target source code.
This optional embodiment when current time arrives Preset Time, can trigger the operation performing to download target source code from the server of storage source code automatically, it is not necessary to issues personnel's manual operation, simple and fast.
S102, configure the compilation tool corresponding with above-mentioned target source code according to the type of code of above-mentioned target source code.
In the embodiment of the present invention, need for compilation tool corresponding to its configuration when the target source code of different code type is compiled, as when the type of code of target source code is .net or c#, the compilation tool of its correspondence is that Microsoft builds engine (MSBuild, MicrosoftBuildEngine), when the type of code of target source code is Java, the compilation tool of its correspondence is quick compilation tool (Ant), when the type of code of target source code is ISO, the compilation tool of its correspondence is a kind of Integrated Development Tool-Xcode operated on operating system MacOSX.
S103, by above-mentioned compilation tool, above-mentioned target source code compilation is become video file.
In the embodiment of the present invention, the video file become by above-mentioned target source code compilation can be .exe .net or .apk etc., and wherein, the file type of video file keeps consistent with the compilation tool of configuration.
In the embodiment of the present invention, being generated a lot of files including video file when above-mentioned target source code is compiled by above-mentioned compilation tool, the embodiment of the present invention only need to use the video file of the types such as .exe .net or .apk.
S104, when above-mentioned video file compiles successfully, above-mentioned video file is copied in advance from target source code obtain destination path in, to complete the issue of software to be released.
In the embodiment of the present invention, above-mentioned video file is copied in the destination path obtained from target source code in advance, namely complete the issue to above-mentioned software to be released.
In an optional embodiment, after the step S105 that is finished, it is also possible to perform following operation:
When being pre-configured with the AutoPlay function for above-mentioned video file, run above-mentioned video file; Or
When not being pre-configured with the AutoPlay function for above-mentioned video file and when receiving the operating instruction for above-mentioned video file, run above-mentioned video file according to this operating instruction.
In this optional embodiment, run above-mentioned video file to complete the test to above-mentioned software function to be released, and run above-mentioned video file and can include actively running above-mentioned video file when being pre-configured with the AutoPlay function for above-mentioned video file, it is also possible to what include when not being pre-configured with the AutoPlay function for above-mentioned video file and receiving user by the operating instruction of corresponding feature operation icon input passive runs above-mentioned video file.
In another optional embodiment, after execution step S103 and before performing step S104, it is also possible to perform following operation:
Generate the compiling journal file for above-mentioned video file.
Judge whether the error identification in above-mentioned compiling journal file is zero, or judging that the mistake (error) in above-mentioned compiling journal file identifies whether is that warning (warning) in zero and above-mentioned compiling journal file identifies whether to be zero, when judged result is for being, it is determined that above-mentioned video file compiles successfully.
In the embodiment of the present invention, for the happy lottery management platform that is full of, the processing method of corresponding software source code specifically includes procedure below:
1, first the URL (URL, UniformResourceLocator) of configuration version control system (SVN, Subversion) server and this SVN authorize login username and login password;
2, the source code of software to be released is uploaded to SVN controller by login username and the login password authorized by software developer;
3, whether Jenkins tool detection current time reaches Preset Time, if so, then downloads the source code of software to be released from SVN server, and is stored under first path by the source code of download.
4, Jenkins configures MSBuild compilation tool according to the type of the source code downloaded for this source code, and compiles source code into video file by this MSBuild compilation tool;
5, Jenkins instrument judges whether the video file compiled out compiles successfully, and exports compiling result;
6, video file is copied under the second path when compiling correct by Jenkins instrument, has completed the issue of software to be released.
7, Jenkins instrument is when being pre-configured with SVN ditch (hooks), runs video file, so that the software issued is carried out automatic test.
In the embodiment of the present invention, target source code is downloaded from the server of storage source code, wherein, this target source code is the source code of software to be released, type of code according to this target source code configures the compilation tool corresponding with this target source code, by this compilation tool, this target source code compilation is become video file, when this video file compiles successfully, this video file is copied in the destination path obtained from this target source code in advance, to complete the issue of software to be released. Implement the embodiment of the present invention after having downloaded the source code of software to be released, automatically perform compilation operations for this source code and issue operation, without being manually entered the instruction of correspondence, save the time being manually entered instruction and avoid the instruction being manually entered mistake, decrease and conventional process flow repeats build the manual resource that issuing process and needs are used, and the source code for all softwares to be released performs identical operation, iteratively faster, improves efficiency and reliability that software is issued.
Refer to the structural representation processing device that Fig. 2, Fig. 2 are a kind of software source codes disclosed in the embodiment of the present invention. Wherein, the device shown in Fig. 2 can be Jenkins continuous integrating instrument. As in figure 2 it is shown, the process device of this software source code can include download unit 201, dispensing unit 202, compilation unit 203 and copy cell 204, wherein:
Download unit 201 is for downloading target source code the server from storage source code.
In the embodiment of the present invention, this target source code is the source code of software to be released. Concrete, can by the software developer address according to server and obtained the user name of server mandate and user cipher logs in this server and the target source code of software to be released is uploaded to this server so that this server stores this target source code.
In the embodiment of the present invention, after download unit 201 downloads complete target source code, this target original code can be stored by the process device of this software source code, wherein, the routing information of this target original code storage can by issuing personnel depaly, can also being indicated by target source code, the embodiment of the present invention does not limit.
The type of code of the dispensing unit 202 target source code for downloading according to download unit 201 configures the compilation tool corresponding with above-mentioned target source code.
In the embodiment of the present invention, need for compilation tool corresponding to its configuration when the target source code of different code type is compiled, as when the type of code of target source code is .net or c#, the compilation tool of its correspondence is that Microsoft builds engine (MSBuild, MicrosoftBuildEngine), when the type of code of target source code is Java, the compilation tool of its correspondence is quick compilation tool (Ant), when the type of code of target source code is ISO, the compilation tool of its correspondence is a kind of Integrated Development Tool-Xcode operated on operating system MacOSX.
The target source code compilation that download unit 201 is downloaded by compilation unit 203 for the compilation tool configured by dispensing unit 202 becomes video file.
In the embodiment of the present invention, the video file that above-mentioned target source code compilation is become by the compilation tool that compilation unit 203 is configured by dispensing unit 202 can be .exe .net or .apk etc., wherein, the file type of video file keeps consistent with the compilation tool of configuration.
In the embodiment of the present invention, compilation unit 203 can generate a lot of files including video file by above-mentioned compilation tool when above-mentioned target source code is compiled, and the embodiment of the present invention only need to use the video file of the types such as .exe .net or .apk.
Copy cell 204 for when above-mentioned video file compiles successfully, copying in the destination path obtained from target source code in advance, to complete the issue of software to be released by above-mentioned video file.
In the embodiment of the present invention, above-mentioned video file is copied in the destination path obtained from target source code in advance by copy cell 204, namely completes the issue to above-mentioned software to be released.
In an optional embodiment, the process device of this software source code can also include running unit 205, now, the device that processes of this software source code can as it is shown on figure 3, Fig. 3 be the structural representation processing device of the embodiment of the present invention disclosed another kind software source code. Wherein:
Running unit 205 is for when being pre-configured with the AutoPlay function for above-mentioned video file, run above-mentioned video file, or when not being pre-configured with the AutoPlay function for above-mentioned video file and when receiving the operating instruction for above-mentioned video file, run above-mentioned video file according to this operating instruction.
In this optional embodiment, running unit 205 runs above-mentioned video file to complete the test to above-mentioned software function to be released, and running unit 205 runs above-mentioned video file and can include actively running above-mentioned video file when being pre-configured with the AutoPlay function for above-mentioned video file, it is also possible to what include when not being pre-configured with the AutoPlay function for above-mentioned video file and receiving user by the operating instruction of corresponding feature operation icon input passive runs above-mentioned video file.
In another optional embodiment, download unit 201 can include obtaining subelement 2011 and lower subelements 2012, now, the process device of this software source code can as shown in Figure 4, and Fig. 4 is the structural representation processing device of the embodiment of the present invention another software source code disclosed. Wherein:
A kind of optional embodiment as this optional embodiment, obtain subelement 2011 for obtaining the download instruction for above-mentioned target source code, wherein, this download instruction can include the identification information of above-mentioned target source code or the identification information of above-mentioned software to be released.
Lower subelements 2012 for according to obtaining the download instruction that subelement 2011 gets, downloading above-mentioned target source code from the server of storage source code.
This optional embodiment when issue personnel are known and be there is software to be released, can trigger, by inputting the mode of download instruction, the target source code downloading software to be released.
As the another kind of optional embodiment of this optional embodiment, obtain subelement 2011 and be used for obtaining current time.
Lower subelements 2012 for when obtaining the current time arrival Preset Time that subelement 2011 gets, downloading above-mentioned target source code from the server of storage source code.
This optional embodiment when current time arrives Preset Time, can trigger the operation performing to download target source code from the server of storage source code automatically, it is not necessary to issues personnel's manual operation, simple and fast.
In another optional embodiment, on the apparatus structure shown in Fig. 2, the process device of this software source code can also include output unit 206, now, the structure processing device of this software source code can as it is shown in figure 5, Fig. 5 be the structural representation processing device of another software source code disclosed in the embodiment of the present invention. Wherein:
Output unit 206 is for when the video file of compilation unit 203 compiling does not compile successful, exporting prompting message, and wherein, this prompting message is used for pointing out above-mentioned video file to compile unsuccessfully, and issue personnel so can be made to pinpoint the problems in time and solve problem.
In another optional embodiment, on the apparatus structure shown in Fig. 2, the process device of this software source code can also include generating unit 207 and judging unit 208, now, the structure processing device of this software source code can as shown in Figure 6, and Fig. 6 is the structural representation processing device of the embodiment of the present invention another software source code disclosed. Wherein:
Generate unit 207 for when copy cell 204 performs to compile successfully when video file, video file is copied in the destination path obtained from target source code in advance, with complete software to be released issue before, generate the compiling journal file for above-mentioned video file.
Whether error identification and Warning Sign in the compiling journal file that judging unit 208 generates for judging generation unit 207 are zero, if, it is determined that video file compiles successfully.
In this optional embodiment, when the judged result of judging unit 208 is for being, trigger copy cell 203 and perform above-mentioned when video file compiles successfully, video file is copied in the destination path obtained from target source code in advance, to complete the operation of the issue of software to be released.
Implement the embodiment of the present invention after having downloaded the source code of software to be released, automatically perform compilation operations for this source code and issue operation, without being manually entered the instruction of correspondence, save the time being manually entered instruction and avoid the instruction being manually entered mistake, decrease and conventional process flow repeats build the manual resource that issuing process and needs are used, and the source code for all softwares to be released performs identical operation, iteratively faster, improves efficiency and reliability that software is issued.
Referring to Fig. 7, Fig. 7 is the structural representation of a kind of electronic equipment disclosed in the embodiment of the present invention. as shown in Figure 7, this electronic equipment may include that housing 701, processor 702, memorizer 703, circuit board 704 and power circuit 705, wherein, circuit board 704 is placed in the interior volume that housing 701 surrounds, processor 702 and memorizer 703 are arranged on circuit board 704, power circuit 705 is powered for each circuit or the device for electronic equipment, memorizer 703 is used for storing executable program code, processor 702 runs the program corresponding with this executable program code by reading the executable program code of storage in memorizer 703, for performing following steps:
Downloading target source code from the server of storage source code, wherein, this target source code is the source code of software to be released;
Type of code according to target source code configures the compilation tool corresponding with target source code;
By compilation tool, target source code compilation is become video file;
When video file compiles successfully, video file is copied in the destination path obtained from target source code in advance, to complete the issue of software to be released.
In an optional embodiment, processor 702 runs the program corresponding with this executable program code by reading the executable program code of storage in memorizer 703, it is also possible to be used for performing following steps:
When being pre-configured with the AutoPlay function for video file, run video file; Or
When not being pre-configured with the AutoPlay function for video file and when receiving the operating instruction for video file, run video file according to operating instruction.
In another optional embodiment, processor 702 is downloaded the concrete mode of target source code from the server of storage source code and can is:
Obtaining the download instruction for target source code, wherein, this download instruction includes the identification information of target source code or the identification information of software to be released;
According to download instruction, download, from the server of storage source code, the target source code that above-mentioned identification information identifies.
In another optional embodiment, processor 702 is downloaded the concrete mode of target source code from the server of storage source code and can is:
Obtain current time;
When current time arrives Preset Time, from the server of storage source code, download target source code.
In another optional embodiment, after by compilation tool target source code compilation being become video file, and when compiling successfully when video file, video file is copied in the destination path obtained from target source code in advance, with complete software to be released issue before, processor 702 runs the program corresponding with this executable program code by reading the executable program code of storage in memorizer 703, it is also possible to be used for performing following steps:
Generate the compiling journal file for video file;
Judge whether the error identification in compiling journal file and Warning Sign are zero, if, it is determined that video file compiles successfully.
In another optional embodiment, processor 702 runs the program corresponding with this executable program code by reading the executable program code of storage in memorizer 703, it is also possible to be used for performing following steps:
When video file does not compile successful, exporting prompting message, this prompting message is used for pointing out video file to compile unsuccessfully.
Implement the embodiment of the present invention after having downloaded the source code of software to be released, automatically perform compilation operations for this source code and issue operation, without being manually entered the instruction of correspondence, save the time being manually entered instruction and avoid the instruction being manually entered mistake, decrease and conventional process flow repeats build the manual resource that issuing process and needs are used, and the source code for all softwares to be released performs identical operation, iteratively faster, improves efficiency and reliability that software is issued.
It should be noted that the embodiment of the present invention also discloses that a kind of storage medium simultaneously, this storage medium is used for storing application program, and this application program is for operationally performing the processing method of a kind of software source code shown in Fig. 1.
It should be noted that the embodiment of the present invention also discloses that a kind of application program simultaneously, this application program is for operationally performing the processing method of a kind of software source code shown in Fig. 1.
It should be noted that in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, the part being not described in certain embodiment, it is possible to referring to the associated description of other embodiments. Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, involved action and necessary to unit, the subelement not necessarily present invention.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit and subelement in embodiment of the present invention device can merge according to actual needs, divide and delete.
Unit described in the embodiment of the present invention and subelement can pass through universal integrated circuit, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The processing method of a kind of software source code, device and the electronic installation that above the embodiment of the present invention are provided are described in detail, principles of the invention and embodiment are set forth by instantiation used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention; Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. the processing method of a software source code, it is characterised in that described method includes:
Downloading target source code from the server of storage source code, wherein, described target source code is the source code of software to be released;
Type of code according to described target source code configures the compilation tool corresponding with described target source code;
By described compilation tool, described target source code compilation is become video file;
When described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, to complete the issue of described software to be released.
2. method according to claim 1, it is characterised in that described described video file is copied in advance from described target source code obtain destination path in after, described method also includes:
When being pre-configured with the AutoPlay function for described video file, run described video file; Or
When not being pre-configured with the AutoPlay function for described video file and when receiving the operating instruction for described video file, run described video file according to described operating instruction.
3. method according to claim 1 and 2, it is characterised in that described download target source code from the server of storage source code, including:
Obtaining the download instruction for described target source code, wherein, described download instruction includes the identification information of described target source code;
According to described download instruction, download, from the server of storage source code, the described target source code that described identification information identifies.
4. method according to claim 1 and 2, it is characterised in that described download target source code from the server of storage source code, including:
Obtain current time;
When described current time arrives Preset Time, from the server of storage source code, download described target source code.
5. method according to claim 1 and 2, it is characterized in that, described when described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, with complete described software to be released issue before, described method also includes:
Generate the compiling journal file for described video file;
Judge whether the error identification in described compiling journal file and Warning Sign are zero, if, it is determined that described video file compiles successfully.
6. method according to claim 1, it is characterised in that described method also includes:
When described video file does not compile successful, exporting prompting message, described prompting message is used for pointing out described video file to compile unsuccessfully.
7. the process device of a software source code, it is characterised in that described device includes download unit, dispensing unit, compilation unit and copy cell, wherein:
Described download unit, for downloading target source code the server from storage source code, wherein, described target source code is the source code of software to be released;
Described dispensing unit, configures the compilation tool corresponding with described target source code for the type of code according to described target source code;
Described compilation unit, for becoming video file by described compilation tool by described target source code compilation;
Described copy cell, for when described video file compiles successfully, copying in the destination path obtained from described target source code in advance, to complete the issue of described software to be released by described video file.
8. device according to claim 7, it is characterised in that described device also includes running unit, wherein:
Described running unit, for when being pre-configured with the AutoPlay function for described video file, run described video file, or when not being pre-configured with the AutoPlay function for described video file and when receiving the operating instruction for described video file, run described video file according to described operating instruction.
9. the device according to claim 7 or 8, it is characterised in that described download unit includes obtaining subelement and lower subelements, wherein:
Described acquisition subelement, for obtaining the download instruction for described target source code, wherein, described download instruction includes the identification information of described target source code;
Described lower subelements, for according to described download instruction, downloading, from the server of storage source code, the described target source code that described identification information identifies.
10. an electronic equipment, described electronic equipment includes: housing, processor, memorizer, circuit board and power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, described processor and described memorizer are arranged on described circuit board, described power circuit is powered for each circuit or the device for described electronic equipment, described memorizer is used for storing executable program code, it is characterized in that, described processor runs the program corresponding with described executable program code by reading the executable program code of storage in described memorizer, for performing following steps:
Downloading target source code from the server of storage source code, wherein, described target source code is the source code of software to be released;
Type of code according to described target source code configures the compilation tool corresponding with described target source code;
By described compilation tool, described target source code compilation is become video file;
When described video file compiles successfully, described video file is copied in the destination path obtained from described target source code in advance, to complete the issue of described software to be released.
CN201510954282.3A 2015-12-17 2015-12-17 Software source code processing method and device and electronic equipment Pending CN105630569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510954282.3A CN105630569A (en) 2015-12-17 2015-12-17 Software source code processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510954282.3A CN105630569A (en) 2015-12-17 2015-12-17 Software source code processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN105630569A true CN105630569A (en) 2016-06-01

Family

ID=56045550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510954282.3A Pending CN105630569A (en) 2015-12-17 2015-12-17 Software source code processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105630569A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201481A (en) * 2016-06-30 2016-12-07 传线网络科技(上海)有限公司 Assembly management method and apparatus in application development system
CN106201524A (en) * 2016-07-13 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method building lasting constructing system based on timing task
CN106445627A (en) * 2016-10-14 2017-02-22 郑州云海信息技术有限公司 Problem positioning method and device in code integration compiling
CN106970818A (en) * 2017-03-27 2017-07-21 深圳市中博睿存信息技术有限公司 A kind of software continuous integrated approach and device for Linux platform
CN108108169A (en) * 2017-12-27 2018-06-01 广东小天才科技有限公司 A kind of construction method and system of the multiple-limb based on Jenkins
CN109101269A (en) * 2018-08-30 2018-12-28 长沙软工信息科技有限公司 A kind of Software Delivery method and device, electronic equipment
CN109725906A (en) * 2018-12-30 2019-05-07 上海创功通讯技术有限公司 A kind of code compiling method and corresponding continuous integration system
CN110865838A (en) * 2019-11-15 2020-03-06 北京云迹科技有限公司 Robot upgrading method and device, electronic equipment and computer readable storage medium
CN110990022A (en) * 2019-11-29 2020-04-10 上海庆科信息技术有限公司 Software project development method and device, processor and electronic device
CN111124478A (en) * 2019-12-19 2020-05-08 杭州迪普科技股份有限公司 Version management method and device
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN112148318A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application package issuing method, application method, device, medium, server and equipment
CN112416426A (en) * 2020-11-30 2021-02-26 北京有竹居网络技术有限公司 Application function issuing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204262A1 (en) * 2006-02-17 2007-08-30 International Business Machines Corporation Facilitating the automated testing of daily builds of software
CN102053836A (en) * 2010-12-31 2011-05-11 广东欧珀电子工业有限公司 Implementation method of version management tool for Android application development
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103927213A (en) * 2014-04-18 2014-07-16 广州金山网络科技有限公司 File compiling method and device
CN105095089A (en) * 2015-09-14 2015-11-25 北京金山安全软件有限公司 Method and device for testing performance of application software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204262A1 (en) * 2006-02-17 2007-08-30 International Business Machines Corporation Facilitating the automated testing of daily builds of software
CN102053836A (en) * 2010-12-31 2011-05-11 广东欧珀电子工业有限公司 Implementation method of version management tool for Android application development
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103927213A (en) * 2014-04-18 2014-07-16 广州金山网络科技有限公司 File compiling method and device
CN105095089A (en) * 2015-09-14 2015-11-25 北京金山安全软件有限公司 Method and device for testing performance of application software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卞孟春: "基于Jenkins的持续集成方案设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
陶镇威: "基于Jenkins的持续集成研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201481A (en) * 2016-06-30 2016-12-07 传线网络科技(上海)有限公司 Assembly management method and apparatus in application development system
CN106201524A (en) * 2016-07-13 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method building lasting constructing system based on timing task
CN106445627A (en) * 2016-10-14 2017-02-22 郑州云海信息技术有限公司 Problem positioning method and device in code integration compiling
CN106970818A (en) * 2017-03-27 2017-07-21 深圳市中博睿存信息技术有限公司 A kind of software continuous integrated approach and device for Linux platform
CN108108169A (en) * 2017-12-27 2018-06-01 广东小天才科技有限公司 A kind of construction method and system of the multiple-limb based on Jenkins
CN109101269A (en) * 2018-08-30 2018-12-28 长沙软工信息科技有限公司 A kind of Software Delivery method and device, electronic equipment
CN109725906A (en) * 2018-12-30 2019-05-07 上海创功通讯技术有限公司 A kind of code compiling method and corresponding continuous integration system
CN110865838A (en) * 2019-11-15 2020-03-06 北京云迹科技有限公司 Robot upgrading method and device, electronic equipment and computer readable storage medium
CN110990022A (en) * 2019-11-29 2020-04-10 上海庆科信息技术有限公司 Software project development method and device, processor and electronic device
CN111124478A (en) * 2019-12-19 2020-05-08 杭州迪普科技股份有限公司 Version management method and device
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN111752572B (en) * 2020-06-29 2023-03-14 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN112148318A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application package issuing method, application method, device, medium, server and equipment
WO2022078057A1 (en) * 2020-10-12 2022-04-21 Oppo广东移动通信有限公司 Method and apparatus for publishing application package, method and apparatus for applying application package, and medium, server and device
CN112148318B (en) * 2020-10-12 2024-02-13 Oppo广东移动通信有限公司 Application package release method, application method, device, medium, server and equipment
CN112416426A (en) * 2020-11-30 2021-02-26 北京有竹居网络技术有限公司 Application function issuing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105630569A (en) Software source code processing method and device and electronic equipment
CN102799515B (en) Applied program testing method and device
EP2245532B1 (en) Method and apparatus for generating virtual software platform based on component model and validating software platform architecture using the platform
CN102053836B (en) Implementation method of version management tool for Android application development
KR20100041447A (en) Apparatus and method for automatic testing of softwares or digital divices
CN109324799A (en) A kind of code compiling method, computer installation and computer readable storage medium
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
JP2008282363A (en) Programmable controller, program creation support device, computer program and programmable logic controller (plc) system
CN104036194B (en) Vulnerability detection method and device for revealing private data in application program
CN106657332A (en) Breakpoint continuous transmission method
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN108920171A (en) Firmware update and device, electronic equipment
CN111542790B (en) Method for processing software items
CN104991865A (en) Software management system, software management method and household appliance
JP2009157533A (en) Programmable controller system
EP3238051A1 (en) Updating software packets in water installation controlling apparatus
CN105893104A (en) Code compiling method and device
US11023220B2 (en) Firmware update with integrated smart sequence and action engine
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
JP6541902B1 (en) Program management system, programming support apparatus, program management method, and programming support program
CN100359485C (en) Testing device and method for flush-bonding system
Faci et al. In situ mutation for active things in the IoT context
CN105653325A (en) Method and device for updating data packet in test environment and electronic equipment
CN113886008A (en) Virtual machine management method, system, device and medium
CN112685048A (en) Application program packaging method, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160826

Address after: 5 building A3, building 99, Ai Ai Road, Suzhou Industrial Park, Jiangsu, Suzhou, 215123

Applicant after: SUZHOU JIANGDUODUO TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication