CN110569035A - Code compiling method, device, equipment and storage medium of software development project - Google Patents

Code compiling method, device, equipment and storage medium of software development project Download PDF

Info

Publication number
CN110569035A
CN110569035A CN201910729245.0A CN201910729245A CN110569035A CN 110569035 A CN110569035 A CN 110569035A CN 201910729245 A CN201910729245 A CN 201910729245A CN 110569035 A CN110569035 A CN 110569035A
Authority
CN
China
Prior art keywords
code
module code
terminal
compiling
service module
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.)
Granted
Application number
CN201910729245.0A
Other languages
Chinese (zh)
Other versions
CN110569035B (en
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.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction 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 Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN201910729245.0A priority Critical patent/CN110569035B/en
Publication of CN110569035A publication Critical patent/CN110569035A/en
Application granted granted Critical
Publication of CN110569035B publication Critical patent/CN110569035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/45Exploiting coarse grain parallelism in compilation, i.e. parallelism between groups of instructions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

the invention relates to a code compiling method, a device, equipment and a storage medium of a software development project.A server acquires the access authority of a code warehouse according to a terminal identifier of a development terminal, determines a service module code warehouse matched with the access authority of the code warehouse in a plurality of service module code warehouses, acquires service module codes from the service module code warehouse, and carries out authority isolation on the plurality of service module code warehouses based on the terminal identifier of the development terminal. And the server sends the service module code to the development terminal to perform compiling processing on the service module code. According to the scheme, the authority isolation can be performed on the plurality of service module code warehouses based on the terminal identification of each development terminal, so that the development terminals can only access the service module code warehouse with the corresponding access authority, the influence on the service module codes of other development terminals is avoided, each development terminal can independently perform compiling test on the corresponding service module codes, and the code compiling efficiency is improved.

Description

code compiling method, device, equipment and storage medium of software development project
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a code compiling method for a software development project, a code compiling apparatus for a software development project, a computer device, and a computer-readable storage medium.
background
software development refers to the process of building a software system or building portions of software in a system based on user needs. With the development of information technology, the demand for software is higher and higher, the workload of software development is also higher and higher, one software development project usually needs a plurality of development terminals to develop together, and the plurality of development terminals develop together to develop one software, which can involve the problems of development terminal coupling, code authority control and the like.
in the traditional technology, all development terminals commonly maintain the same code warehouse, namely all codes of software commonly developed by all development terminals are in the same code warehouse, so that the development terminals are easily affected by other development terminals on the codes being compiled during the code compiling process to cause compiling errors, and the efficiency of compiling the codes by the technology is low.
Disclosure of Invention
in view of the above, it is necessary to provide a code compiling method for a software development project, a code compiling apparatus for a software development project, a computer device, and a computer-readable storage medium, for solving the technical problem that the traditional technology is inefficient in compiling codes.
a code compiling method for a software development project comprises the following steps:
Receiving a terminal identifier sent by a development terminal;
Acquiring the code warehouse access authority of the development terminal according to the terminal identification;
Determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
and sending the service module code to the development terminal for the development terminal to compile the service module code.
A code compiling method for a software development project comprises the following steps:
Sending a terminal identifier to a server, wherein the server acquires corresponding code warehouse access authority according to the terminal identifier, determines a service module code warehouse matched with the code warehouse access authority from a plurality of service module code warehouses, and acquires a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
receiving the service module code sent by the server;
And compiling the service module code.
A code compiling apparatus for a software development project, comprising:
The identification receiving module is used for receiving a terminal identification sent by the development terminal;
The authority acquisition module is used for acquiring the code warehouse access authority of the development terminal according to the terminal identification;
The code acquisition module is used for determining a business module code warehouse matched with the access authority of the code warehouse in a plurality of business module code warehouses and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
and the first compiling module is used for sending the service module code to the development terminal and compiling the service module code by the development terminal.
A code compiling apparatus for a software development project, comprising:
The system comprises an identifier sending module, a server and a service module code warehouse, wherein the identifier sending module is used for sending a terminal identifier to the server, and is used for acquiring corresponding code warehouse access authority according to the terminal identifier, determining the service module code warehouse matched with the code warehouse access authority in the service module code warehouses and acquiring a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
The code receiving module is used for receiving the service module code sent by the server;
And the second compiling module is used for compiling the service module codes.
a computer device comprising a processor and a memory, the memory storing a computer program that when executed by the processor performs the steps of:
Receiving a terminal identifier sent by a development terminal; acquiring the code warehouse access authority of the development terminal according to the terminal identification; determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal; and sending the service module code to the development terminal for the development terminal to compile the service module code.
A computer device comprising a processor and a memory, the memory storing a computer program that when executed by the processor performs the steps of:
sending a terminal identifier to a server, wherein the server acquires corresponding code warehouse access authority according to the terminal identifier, determines a service module code warehouse matched with the code warehouse access authority from a plurality of service module code warehouses, and acquires a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal; receiving the service module code sent by the server; and compiling the service module code.
a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a terminal identifier sent by a development terminal; acquiring the code warehouse access authority of the development terminal according to the terminal identification; determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal; and sending the service module code to the development terminal for the development terminal to compile the service module code.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
Sending a terminal identifier to a server, wherein the server acquires corresponding code warehouse access authority according to the terminal identifier, determines a service module code warehouse matched with the code warehouse access authority from a plurality of service module code warehouses, and acquires a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal; receiving the service module code sent by the server; and compiling the service module code.
According to the code compiling method, device, equipment and storage medium of the software development project, the development terminal sends the terminal identification of the development terminal to the server, the server receives the terminal identification, the code warehouse access authority of the development terminal is obtained according to the terminal identification, then the service module code warehouse matched with the code warehouse access authority is determined in the plurality of service module code warehouses, the service module codes are obtained from the service module code warehouse, the plurality of service module code warehouses carry out authority isolation based on the terminal identification of the development terminal, and then the server sends the service module codes to the development terminal, so that the development terminal compiles the service module codes. According to the scheme, the authority isolation can be performed on the plurality of service module code warehouses based on the terminal identification of each development terminal, so that the development terminals can only access the service module code warehouse with the corresponding access authority, the influence on the service module codes of other development terminals is avoided, each development terminal can independently perform compiling test on the corresponding service module codes, and the code compiling efficiency is improved.
Drawings
FIG. 1 is a diagram illustrating an example of an application scenario of a code compilation method for a software development project;
FIG. 2 is a flowchart illustrating a method for code compilation of a software development project in one embodiment;
FIG. 3 is a diagram illustrating page hopping before a service module in an embodiment;
FIG. 4 is a diagram of standard state encoding in one embodiment;
FIG. 5 is a flow diagram of a compilation of packages in one embodiment;
FIG. 6 is a schematic diagram of a conventional code compiling method;
FIG. 7 is a schematic diagram of a code compilation process in one embodiment;
FIG. 8 is a flowchart illustrating a code compiling method for a software development project according to another embodiment;
FIG. 9 is a block diagram showing the structure of a code compiling apparatus for a software development project according to an embodiment;
FIG. 10 is a block diagram showing a code compiling apparatus for a software development project according to another embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment;
Fig. 12 is an internal structural view of a computer device in another embodiment.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that the term "first \ second" referred to in the embodiments of the present invention only distinguishes similar objects, and does not represent a specific ordering for the objects, and it should be understood that "first \ second" may exchange a specific order or sequence when allowed. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in sequences other than those illustrated or described herein.
The code compiling method for the software development project provided by the present invention can be applied to the application scenario shown in fig. 1, where fig. 1 is an application scenario diagram of the code compiling method for the software development project in an embodiment, and the application scenario may include a plurality of development terminals 110 and a server 200, where the number of the development terminals 110 may be multiple, each development terminal 110 may be connected to the server 200 through the internet, and each development terminal 110 may maintain a relevant software code of the software development project through the server 200.
specifically, the development terminal 110 may send a terminal identifier of the development terminal to the server 200, and after receiving the terminal identifier, the server 200 obtains a code repository access right of the development terminal 110 according to the terminal identifier, then determines a service module code repository configured with the code repository access right from among a plurality of service module code repositories, and obtains a service module code from the service module code repository, where the plurality of service module code repositories are isolated based on the terminal identifier of the development terminal 110. Next, the server 200 may transmit the service module code to the development terminal 110, so that the development terminal 110 performs a compiling process on the service module code. The development terminal 110 may be, but is not limited to, various personal computers, notebook computers and tablet computers, and the server 200 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, a method for compiling code of a software development project is provided, and referring to fig. 2, fig. 2 is a flowchart illustrating a method for compiling code of a software development project in an embodiment, where the method may be implemented based on the server 200 shown in fig. 1, and the method for compiling code of a software development project may include the following steps:
and step S101, receiving the terminal identification sent by the development terminal.
the method mainly comprises the steps that before codes of the software development project are compiled, the development terminals 110 firstly send terminal identifications to the server 200, the server 200 can receive the terminal identifications sent by the development terminals 110 through the Internet, the development terminals 110 generally have a plurality of numbers, each development terminal 110 jointly develops one software development project, and the terminal identifications of the development terminals 110 are mainly used for distinguishing each development terminal 110, so that the corresponding codes can be conveniently fed back to the corresponding development terminals in the subsequent steps, and the disordered code access is avoided. For example, assuming that the number of the development terminals 110 is four, the terminal identifiers of the development terminals 110 may be set as: A. b, C and D, for distinguishing each development terminal 110, the development terminal 110 may first send its terminal identifier to the server 200 when it needs to compile the code of the code repository.
and step S102, acquiring the code warehouse access authority of the development terminal according to the terminal identification.
in this step, the server 200 obtains the code repository access right of the development terminal 110 according to the terminal identifier sent by the development terminal 110. The server 200 may set a code repository access right for each development terminal of the software development project in advance, so that a certain development terminal can only have a specific code repository access right, the server 200 may set a correspondence between a terminal identifier and the code repository access right in advance, and after receiving the terminal identifier sent by the development terminal 110, the server 200 may obtain the code repository access right of the development terminal 110 according to the correspondence.
Step S103, determining a business module code warehouse matched with the access authority of the code warehouse in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; and the plurality of service module code warehouses are subjected to authority isolation based on the terminal identification of the development terminal.
in this step, the server 200 may access a plurality of service module code repositories of the software development project, and may also extract corresponding service module codes from each service module code repository, and the development terminal 110 may access the service module code repositories through the server 200 and obtain the service module codes. In order to prevent each development terminal 110 from interfering with software codes of other development terminals 110 when accessing codes of the code repository, the server 200 may perform permission isolation processing on each service module code repository in advance based on a terminal identifier of each development terminal 110, the permission isolation means that each development terminal 110 can only access the code repository within the access permission range and cannot access the code repository outside the access permission range, and after acquiring the code repository access permission of the development terminal 110, the server 200 determines a service module code repository matching the code repository access permission from among the plurality of service code repositories, and then acquires a service module code from the service module code repository.
and step S104, sending the service module code to the development terminal for the development terminal to compile the service module code.
In this step, after obtaining the service module code, the server 200 feeds back the service module code to the corresponding development terminal 110, so that the development terminal 110 with code access authority can perform a compiling test on the service module code after receiving the service module code.
According to the code compiling method of the software development project, the development terminal sends the terminal identification of the development terminal to the server, the server receives the terminal identification, the code warehouse access authority of the development terminal is obtained according to the terminal identification, then the service module code warehouse matched with the code warehouse access authority is determined in the plurality of service module code warehouses, the service module codes are obtained from the service module code warehouse, the plurality of service module code warehouses carry out authority isolation based on the terminal identification of the development terminal, and then the server sends the service module codes to the development terminal, so that the development terminal compiles the service module codes. According to the scheme, the authority isolation can be performed on the plurality of service module code warehouses based on the terminal identification of each development terminal, so that the development terminals can only access the service module code warehouse with the corresponding access authority, the influence on the service module codes of other development terminals is avoided, each development terminal can independently perform compiling test on the corresponding service module codes, and the code compiling efficiency is improved.
a software development project is generally divided into a plurality of service modules and common modules, the software codes of the service modules are service module codes, which are stored in corresponding service module code warehouses, respectively, and maintained by the corresponding development terminals 110 through the server 200, and the service module codes maintained by the development terminals 110 can be compiled based on the maintenance of the development terminals in combination with the common module codes corresponding to the common modules. In an embodiment, the step of sending the service module code to the development terminal in step S104 for the development terminal to perform compiling processing on the service module code may further include:
Obtaining a public module code from a public module code repository; and sending the public module code and the service module code to a development terminal for the development terminal to compile the public module code and the service module code.
In this embodiment, the server 200 may also access a common module code repository of the software development project to obtain a common module code, and send the common module code and the service module code to the development terminal 110 for compiling, so that the development terminal 110 may directly call sdk, components, page codes, and the like in the common module, thereby improving the efficiency of code compiling. Further, the common module code repository may also have an update requirement, and the server 200 may update the updated common module code to the development terminal 110, specifically, the development terminal 110 may send a common module code update request to the server 200, and the server 200 may obtain the updated common module code according to the common module code update request and send the updated common module code to the development terminal 110.
In an embodiment, as shown in fig. 3, fig. 3 is a schematic diagram of page jump before a service module in an embodiment, because each service module code is maintained by a corresponding development terminal 110 through a server 200, each development terminal 110 cannot see a main module code and other service module codes, so that there is no direct coupling relationship between the main module code and each sub-module code or each sub-module code, and only the page unified path jump can be performed by using the sdk method, where a specific form of sdk may be:
sdk.navigateTo({
url:“sub-B/page-A”
})
based on the sdk method, page jump can be realized before the service module A and the service module B, so that reference can be conveniently carried out on the corresponding page of the associated service module in the development process of the service module code, and the quality of code compiling is improved.
In one embodiment, the step of obtaining the service module code from the service module code repository in step S103 may include:
acquiring a standard configuration file of a software development project; extracting an address list from the specification configuration file; the address list records access addresses of the plurality of code warehouses, and the access addresses respectively correspond to the plurality of business module code warehouses; and acquiring the business module code based on the access address corresponding to the business module code warehouse in the address list.
in this embodiment, the server 200 may obtain an access address of each business module code repository based on the specification configuration file of the software development project, and obtain a corresponding business module code based on the access address. Specifically, in a software development project, different software types (desktop software, web system, Android, ioso, and wechat applet, etc.) have different code module specifications, but one software development project can only be one software type, and the code module specification is recorded by a specification configuration file, and in the specification configuration file, related information of each service module code repository and a common module code repository of the software development project, for example, an access address of each service module code repository, information of a relationship between each service module code repository and the common module code repository, and the specification configuration file is described by taking config.json as an example, and a specific form of config.json may be:
json is usually configured in a main module code directory of a software development project, and for different software types, different directory document structures may be used due to different software characteristics, and taking a wechat applet as an example, a directory document structure of a wechat applet may be:
project-name
construct-components// component library
information transformation device-pub-sdk// common module sdk
l-mail-u/common module assembly
├──pages
| directory-page// common module page
L + -, -index// project homepage
construct-constant/constant directory
│├──cgi.js
| directory
l + -, -env.js// global environment variables, such as production environment prod, development environment dev, test environment test
Construction-images/picture directory
construct-third/dependent directory, can add the needed modules by itself, such as: utils, model
Construct-app.js/business module app will fail, with master module app
├──app.json
├──app.wxss
construct-mail-app.js/sub-app.js/project specification contract file, instead of app.js
Construct-config
L-project. config. json// applet configuration file
therefore, the server 200 may obtain the main module code from the main module code repository, and obtain the specification configuration file of the software development project under the directory of the main module code, where the initialization command Commandinit may be executed on the terminal to generate a directory file according to the directory document structure specification by transmitting the project name and the project type, for example: command init-type, where the type parameter can be selected as: soft, android, ios and miniprogam. Then, an address list may be extracted from the specification configuration file, where the address list records access addresses of a plurality of code warehouses, and may respectively correspond to a plurality of service module code warehouses, that is, according to the address list, the server 200 may access each service module code warehouse, so that, after the server 200 determines a service module code warehouse of which the development terminal 110 has access authority, the server may obtain a corresponding access address from the address list, and download a service module code from the service module code warehouse based on the access address.
The embodiment does not limit the specific form of the code repository, and may be svn, git, or npm package, and the access address may be an access address of a server, for example:
ssh://[email protected]/FrontEnd/main.git。
according to the technical scheme of the embodiment, the standard configuration file is generally configured at the early stage of the software development project, so that the access address of the related code warehouse can be accurately found according to the standard configuration file, code compiling errors caused by the access address errors of the code warehouse are avoided, and the code compiling efficiency is improved.
Each business module of the software development project is maintained by the plurality of development terminals 110, except for the development terminals 110, the project management terminal may also access the server 200, the project management terminal is mainly used for managing each business module, the common module and the main module of the software development project, after the compilation test of each business module by the plurality of development terminals 110 is completed, the project management terminal may perform the package combining compilation of all modules of the software development project, in one embodiment, the code compilation method of the software development project may further include the following steps:
receiving a package combination compiling request sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; and responding to the package combination compiling request, acquiring a main module code in a main module code warehouse, service module codes in a plurality of service module code warehouses and a common module code in a common module code warehouse, sending the obtained codes to the project management terminal, and using the project management terminal to carry out package combination compiling on the main module code, the plurality of service module codes and the common module code.
in this embodiment, the software development project is divided into a main module, a plurality of service modules and a common module, the main module code is stored in a main module code warehouse, the plurality of service module codes are stored in different service module code warehouses, and the common module code is stored in a common module code warehouse, wherein each code warehouse of the software development project implements strict authority management, the main module code warehouse is managed by a project management terminal, each service module code warehouse is only maintained by a development terminal 110 having a specific authority, each service module code warehouse is not coupled with each other, and after each development terminal 110 performs an independent operation test on the corresponding service module code, the project management terminal can perform package combination compilation. Specifically, the project management terminal may send a package compilation request to the server 200, the server 200 may obtain a specification configuration file of the software development project, analyzing the specification configuration file so as to determine a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse of the software development project division, acquiring access addresses of the code warehouses from the specification configuration file, the server 200 may then download the main module code from the main module code repository, the plurality of service module codes from the plurality of service module code repositories, respectively, and the common module code from the common module code repository based on the access addresses of the respective code repositories, next, the server 200 may transmit the main module code, the plurality of service module codes, and the common module code to the project management terminal for compilation of a package.
In addition to performing the package combination compilation on the project management terminal, the package combination compilation process may be directly performed on the server 200 in order to facilitate the testing of the software codes. In an embodiment, the code compiling method for the software development project may further include the following steps:
Receiving a package combination compiling instruction sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; acquiring a main module code in a main module code warehouse, business module codes in a plurality of business module code warehouses and a common module code in a common module code warehouse; and in response to the package combination compiling instruction, performing package combination compiling on the main module code, the plurality of service module codes and the common module code.
In this embodiment, a manager of the software development project may trigger a package combination compiling instruction on the project management terminal, and then the project management terminal sends the package combination compiling instruction to the server 200, and the server 200 may perform package combination compiling on each module code of the software development project after receiving the package combination compiling instruction. Specifically, the server 200 may obtain a specification configuration file of the software development project, analyze the specification configuration file, determine a main module code repository, a plurality of service module code repositories, and a common module code repository into which the software development project is divided, and obtain an access address of each code repository from the specification configuration file, then, the server 200 may download a main module code from the main module code repository, download a plurality of service module codes from the plurality of service module code repositories, and download a common module code from the common module code repository based on the access address of each code repository, and then, the server 200 performs a package combining and compiling process on the main module code, the plurality of service module codes, and the common module code.
Further, in an embodiment, after the step of performing the package compilation on the main module code, the plurality of service module codes and the common module code, the method may further include the following steps:
acquiring a packet combination compiling state; if the package combination compiling state is that the package combination compiling is successful, acquiring the two-dimensional code of the complete software package, and sending the two-dimensional code to the development terminal and/or the project management terminal; the complete software package is obtained by performing package combination and compilation on the main module code, the plurality of service module codes and the common module code.
if the package combination compiling state is the package combination compiling success, the two-dimensional code of the complete software package can be obtained and sent to the development terminal 110 and/or the project management terminal, so that developers and project managers can scan the two-dimensional code through mobile terminals of the developers and the project managers, download or directly start the software package, such as a small program, and can directly start and preview the software package on a mobile phone.
in one embodiment, if the package combination compiling state is package combination compiling failure, acquiring an abnormal state generated in the package combination compiling process and determining an abnormal service code; the abnormal service code is a service module code generating an abnormal state; acquiring a first coding field corresponding to an abnormal state and a second coding field corresponding to an abnormal service code from a pre-configured standard state coding field set; and combining the first coding field and the second coding field to obtain the state code of the combined packet compiling.
the method and the device mainly generate the state code of the packet compiling under the condition that the packet compiling fails, so that the related abnormal information of the packet compiling state can be fed back to corresponding developers and managers, the developers and the managers can correct the related codes in time, and the code compiling efficiency is improved. Specifically, during the compilation process of the merged package, the codes of the modules of the software development project may generate an exception, which results in the failure of the compilation process of the merged package, and in order to accurately feed back the exception information, a standard status code may be configured in advance for each kind of exception information, the exception information of this embodiment may be represented based on an exception status and an exception service code, the exception status may include, for example, a code syntax exception, a performance/size exception, a security exception, and the exception service code refers to a service module code that generates an exception status, and therefore, the standard status code may be divided into two fields, which respectively correspond to the exception status and the exception service code, so that, when an exception occurs during the compilation process of the merged package, the exception status may be obtained and the exception service code may be determined, and then from a set of fields of the standard status code configured in advance, the method includes the steps of acquiring a first encoding field corresponding to an abnormal state and a second encoding field corresponding to an abnormal service code, and combining the first encoding field and the second encoding field to obtain a state code of a combined packet compilation, wherein for the convenience of analyzing the state code, a mode of combining the encoding fields can be a mode of connecting the two encoding fields in series, for example, the first encoding field is 3003, the second encoding field is 00003002, and the state code can be 300300003002 or 000030023003.
further, referring to fig. 4, fig. 4 is a schematic diagram of a standard status code in an embodiment, the standard status code may be further divided into three code fields, a first code field corresponds to a provider (i.e., a development terminal), a second code field corresponds to a service (i.e., a service class of the development terminal), and a third code field corresponds to a status value (i.e., an abnormal status), each field needs to reserve a corresponding sufficient number of bits to distinguish different status codes. Wherein, each supplier code field corresponds to an entity supplier and is in a one-to-one relationship; each supplier can develop a plurality of service module codes, namely, the combined coding field of the supplier and the service has a one-to-one relationship with one service module code; for the encoded field of the status value, where 0000 is the normal pass status, and other non-0000s are all exception statuses, and the exception status and the actual entry are defined as the standard, taking the WeChat applet entry as an example, the definitions are as follows:
1xxx is a code syntax exception, such as 1001 code is not normally closed;
2xxx is a performance/packet size anomaly;
iii.3xxx is a security exception.
for example: if the state code obtained by the package combination compilation is 000030023003, the state code indicates that 002 service of a 00003 provider has safety exception in the package combination compilation process, wherein the combined code of the provider and the service can be quickly positioned to a service module code, and the state value 3003 is positioned to the service module code and has safety risk of exposing token; if the state code obtained by the package combination compiling is 000050022001, the state code indicates that the 002 service of the 00005 supplier has performance/package size abnormity in the package combination compiling process, wherein the supplier + service combined code can be quickly positioned to the service module code, and the state value 2001 is positioned to the service module code, so that a large amount of setData operation exists and performance risk exists.
In the above embodiment, the compiling state of the package combination compiling may include successful package combination compiling and failed package combination compiling, if the software code is not abnormal in the package combination compiling process, a report document may be returned, where the report document lists information such as how many code warehouses, code branches, last code updating time, and updaters corresponding to the software code, and if the software code is abnormal, the returned report document also carries a state code obtained by package combination compiling, which is used for developers and managers to correct the relevant code in time, so as to improve the code compiling effect.
The package aggregation compiling process of an embodiment is specifically described with reference to fig. 5, where fig. 5 is a flowchart of package aggregation compiling in an embodiment, where the package aggregation compiling process of this embodiment is executed by a project management terminal, and the specific steps may include: json, creating a temporary directory in a user directory, naming the name of a configuration file item, downloading a common module code library, a main module code library and each business module code library to a packages directory of the temporary directory according to configuration branches, performing state detection such as syntax detection, redundant file detection, safety detection and the like on codes of each code warehouse, caching detection results, traversing each business module code file, replacing the path with a relatively accessible path according to specifications, copying the processed packages directory codes to a dist directory, executing various types of compiling commands such as a WeChat applet, starting an applet tool, uploading the compiling commands to an applet server, receiving a two-dimensional code returned by the applet server, scanning the two-dimensional code by a developer through a mobile phone, downloading or directly starting a code package such as an applet, and directly starting and previewing the applet on the mobile phone, a report document is generated.
in order to more clearly illustrate the difference between the code compiling method of the software development project provided by the embodiment of the present invention and the conventional code compiling method, reference is made to fig. 6 and fig. 7, where fig. 6 is a schematic diagram of the conventional code compiling method, and fig. 7 is a schematic diagram of the code compiling method in one embodiment.
as shown in fig. 6, in the conventional code compiling method, multiple suppliers develop the same software together, and all suppliers maintain the same code warehouse together, so that people can check the codes of the other side mutually, which causes code security risk, and communication cost is high and efficiency is low when codes conflict, as shown in fig. 7, in the code compiling method of the software development project provided by the embodiment of the present invention, the code warehouse performs strict authority management, the main module code warehouse is managed by project management personnel, each service module code warehouse only has the authority of the supplier with access authority to manage, in the development stage, the suppliers independently run tests, and all service module codes are not coupled with each other, in the package compiling stage, the online automatic package compiling can be unified, the code states can be detected, if problems occur, the corresponding standard state codes can be returned, the problems of code authority, safety management, state detection and the like when a plurality of suppliers develop the same software together are solved, and the efficiency of code compiling is improved.
In an embodiment, a method for compiling a code of a software development project is further provided, referring to fig. 8, where fig. 8 is a flowchart illustrating a method for compiling a code of a software development project in another embodiment, where the method may be implemented based on the development terminal 110 shown in fig. 1, and the method for compiling a code of a software development project may include the following steps:
Step S401, sending the terminal identification to a server, wherein the server acquires corresponding code warehouse access authority according to the terminal identification, determines a service module code warehouse matched with the code warehouse access authority from a plurality of service module code warehouses, and acquires a service module code from the service module code warehouse; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal;
step S402, receiving a service module code sent by a server;
step S403, compiling the service module code.
In the above embodiment, before compiling the codes of the software development project, the development terminals 110 first send their terminal identifiers to the server 200, and the server 200 may receive the terminal identifiers sent by the development terminals 110 through the internet, because the number of the development terminals 110 is generally multiple, each development terminal 110 jointly develops one software development project, and the terminal identifiers of the development terminals 110 are mainly used for distinguishing each development terminal 110, so that it is convenient for the subsequent steps to feed back the corresponding codes to the corresponding development terminals, and thus avoiding confusion of code access. Then, the server 200 acquires the code warehouse access authority of the development terminal 110 according to the terminal identifier sent by the development terminal 110, wherein the server 200 may set the code warehouse access authority for each development terminal of the software development project in advance, so that a certain development terminal can only have a specific code warehouse access authority, the server 200 may establish a corresponding relationship between the terminal identifier and the code warehouse access authority in advance, and after the server 200 receives the terminal identifier sent by the development terminal 110, the code warehouse access authority of the development terminal 110 may be acquired according to the corresponding relationship; the server 200 can access a plurality of business module code warehouses of the software development project, and can also extract corresponding business module codes from each business module code warehouse, and the development terminal 110 can access the business module code warehouses through the server 200 and obtain the business module codes. In order to enable each development terminal 110 not to interfere with software codes of other development terminals 110 when accessing codes of the code warehouse, the server 200 may perform permission isolation processing on each service module code warehouse in advance based on a terminal identifier of each development terminal 110, permission isolation means that each development terminal 110 can only access the code warehouse within the access permission range thereof and cannot access the code warehouse outside the access permission range thereof, and after acquiring the code warehouse access permission of the development terminal 110, the server 200 determines a service module code warehouse matched with the code warehouse access permission from a plurality of service code warehouses, and then acquires a service module code from the service module code warehouse; after acquiring the service module code, the server 200 feeds the service module code back to the corresponding development terminal 110, so that the development terminal 110 with the code access right can perform a compiling test on the service module code after receiving the service module code.
in one embodiment, the step of compiling the service module code may include:
receiving a public module code sent by a server; the public module code is acquired by the server from a public module code warehouse; and compiling the common module code and the service module code.
in this embodiment, mainly, the server 200 may further access the public module code repository of the software development project to obtain the public module code, and send the public module code and the service module code together to the development terminal 110 for compiling, so that the development terminal 110 may directly call sdk, components, page codes and the like in the public module, and improve the efficiency of code compiling. Further, the common module code repository may also have an update requirement, and the server 200 may update the updated common module code to the development terminal 110, specifically, the development terminal 110 may send a common module code update request to the server 200, and the server 200 may obtain the updated common module code according to the common module code update request and send the updated common module code to the development terminal 110.
according to the code compiling method of the software development project, the development terminal sends the terminal identification of the development terminal to the server, the server receives the terminal identification, the code warehouse access authority of the development terminal is obtained according to the terminal identification, then the service module code warehouse matched with the code warehouse access authority is determined in the plurality of service module code warehouses, the service module codes are obtained from the service module code warehouse, the plurality of service module code warehouses carry out authority isolation based on the terminal identification of the development terminal, and then the server sends the service module codes to the development terminal, so that the development terminal compiles the service module codes. According to the scheme, the authority isolation can be performed on the plurality of service module code warehouses based on the terminal identification of each development terminal, so that the development terminals can only access the service module code warehouse with the corresponding access authority, the influence on the service module codes of other development terminals is avoided, each development terminal can independently perform compiling test on the corresponding service module codes, and the code compiling efficiency is improved.
In an embodiment, a code compiling apparatus for a software development project is provided, and referring to fig. 9, fig. 9 is a block diagram of a structure of the code compiling apparatus for the software development project in an embodiment, where the code compiling apparatus for the software development project may include:
An identifier receiving module 101, configured to receive a terminal identifier sent by a development terminal;
the authority acquisition module 102 is used for acquiring the code warehouse access authority of the development terminal according to the terminal identifier;
a code acquisition module 103, configured to determine a service module code repository matching the code repository access authority from among a plurality of service module code repositories, and acquire a service module code from the service module code repository; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal;
And the first compiling module 104 is configured to send the service module code to the development terminal, and is configured to perform compiling processing on the service module code by the development terminal.
In one embodiment, first compiling module 104 is further configured to: obtaining a public module code from a public module code repository; sending the public module code and the service module code to a development terminal for the development terminal to compile the public module code and the service module code
in one embodiment, the code acquisition module 103 is further configured to: acquiring a standard configuration file of a software development project; extracting an address list from the specification configuration file; the address list records access addresses of the plurality of code warehouses, and the access addresses respectively correspond to the plurality of business module code warehouses; and acquiring the business module code based on the access address corresponding to the business module code warehouse in the address list.
In one embodiment, the method may further include:
The first packet combining and compiling module is used for receiving a packet combining and compiling request sent by the project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; and responding to the package combination compiling request, acquiring a main module code in a main module code warehouse, service module codes in a plurality of service module code warehouses and a common module code in a common module code warehouse, sending the obtained codes to the project management terminal, and using the project management terminal to carry out package combination compiling on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the method may further include:
the second packet combining and compiling module is used for receiving a packet combining and compiling instruction sent by the project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; acquiring a main module code in a main module code warehouse, business module codes in a plurality of business module code warehouses and a common module code in a common module code warehouse; and in response to the package combination compiling instruction, performing package combination compiling on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the method may further include:
The state acquisition unit is used for acquiring a packet combination compiling state;
The first state processing unit is used for acquiring the two-dimensional code of the complete software package and sending the two-dimensional code to the development terminal and/or the project management terminal if the package combination compiling state is that the package combination compiling is successful; the complete software package is obtained by performing package combination and compilation on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the method may further include:
The second state processing unit is used for acquiring an abnormal state generated in the packet combining compiling process and determining an abnormal service code if the packet combining compiling state is the packet combining compiling failure; the abnormal service code is a service module code generating an abnormal state; acquiring a first coding field corresponding to an abnormal state and a second coding field corresponding to an abnormal service code from a pre-configured standard state coding field set; and combining the first coding field and the second coding field to obtain the state code of the combined packet compiling.
In an embodiment, a code compiling apparatus for a software development project is further provided, referring to fig. 10, where fig. 10 is a block diagram of a code compiling apparatus for a software development project in another embodiment, where the code compiling apparatus for a software development project may include:
the identifier sending module 401 is configured to send the terminal identifier to the server, and is configured to obtain, by the server, a corresponding code repository access right according to the terminal identifier, determine, from among the plurality of service module code repositories, a service module code repository that matches the code repository access right, and obtain a service module code from the service module code repository; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal;
A code receiving module 402, configured to receive a service module code sent by a server;
And a second compiling module 403, configured to compile the service module code.
In one embodiment, the second compiling module 403 is further configured to receive the common module code sent by the server; the public module code is obtained by the server from a public module code warehouse; and compiling the common module code and the service module code.
the code compiling device of the software development project corresponds to the code compiling method of the software development project one by one, the specific limitation of the code compiling device of the software development project can be referred to the limitation of the code compiling method of the software development project, the technical characteristics and the beneficial effects described in the embodiment of the code compiling method of the software development project are all applicable to the embodiment of the code compiling device of the software development project, and the details are not repeated herein. The modules in the code compiling device of the software development project can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the computer device may be a server, an internal structure diagram of the computer device may be as shown in fig. 11, and fig. 11 is an internal structure diagram of the computer device in one embodiment. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device may be used to store data such as business module codes of a plurality of business module code repositories. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of code compilation for a software development project.
in one embodiment, a computer device is provided, the computer device may be a terminal, the internal structure of which may be as shown in fig. 12, and fig. 12 is an internal structure of the computer device in another embodiment. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of code compilation for a software development project. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configurations shown in fig. 11 and 12 are only block diagrams of some of the configurations relevant to the inventive arrangements and do not constitute a limitation on the computing devices to which the inventive arrangements may be applied, and that a particular computing device may include more or less components than those shown, or some of the components may be combined, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a processor and a memory, the memory storing a computer program, the processor implementing the code compiling method for a software development project according to any one of the above embodiments when executing the computer program.
In one embodiment, there is provided a computer device comprising a processor and a memory, the memory storing a computer program which when executed by the processor performs the steps of:
receiving a terminal identifier sent by a development terminal; acquiring a code warehouse access right of a development terminal according to the terminal identification; determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal; and sending the service module code to a development terminal for the development terminal to compile the service module code.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
obtaining a public module code from a public module code repository; and sending the public module code and the service module code to a development terminal for the development terminal to compile the public module code and the service module code.
in one embodiment, the processor, when executing the computer program, further performs the steps of:
Acquiring a standard configuration file of a software development project; extracting an address list from the specification configuration file; the address list records access addresses of the plurality of code warehouses, and the access addresses respectively correspond to the plurality of business module code warehouses; and acquiring the business module code based on the access address corresponding to the business module code warehouse in the address list.
in one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a package combination compiling request sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; and responding to the package combination compiling request, acquiring a main module code in a main module code warehouse, service module codes in a plurality of service module code warehouses and a common module code in a common module code warehouse, sending the obtained codes to the project management terminal, and using the project management terminal to carry out package combination compiling on the main module code, the plurality of service module codes and the common module code.
in one embodiment, the processor, when executing the computer program, further performs the steps of:
Receiving a package combination compiling instruction sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; acquiring a main module code in a main module code warehouse, business module codes in a plurality of business module code warehouses and a common module code in a common module code warehouse; and in response to the package combination compiling instruction, performing package combination compiling on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
Acquiring a packet combination compiling state; if the package combination compiling state is that the package combination compiling is successful, acquiring the two-dimensional code of the complete software package, and sending the two-dimensional code to the development terminal and/or the project management terminal; the complete software package is obtained by performing package combination and compilation on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the package combination compiling state is a package combination compiling failure, acquiring an abnormal state generated in the package combination compiling process and determining an abnormal service code; the abnormal service code is a service module code generating an abnormal state; acquiring a first coding field corresponding to an abnormal state and a second coding field corresponding to an abnormal service code from a pre-configured standard state coding field set; and combining the first coding field and the second coding field to obtain the state code of the combined packet compiling.
In one embodiment, there is provided a computer device comprising a processor and a memory, the memory storing a computer program which when executed by the processor performs the steps of:
The terminal identification is sent to a server, the server acquires corresponding code warehouse access authority according to the terminal identification, a service module code warehouse matched with the code warehouse access authority is determined in a plurality of service module code warehouses, and a service module code is acquired from the service module code warehouse; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal; receiving a service module code sent by a server; and compiling the service module codes.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a public module code sent by a server; the public module code is obtained by the server from a public module code warehouse; and compiling the common module code and the service module code.
According to the computer equipment, through the computer program running on the processor, authority isolation can be carried out on a plurality of service module code warehouses based on the terminal identification of each development terminal, so that the development terminals can only access the service module code warehouse with the corresponding access authority, influence on service module codes of other development terminals is avoided, each development terminal can independently compile and test the corresponding service module codes, and code compiling efficiency is improved.
it will be understood by those skilled in the art that all or part of the processes in the code compiling method for implementing the software development project according to any one of the embodiments described above may be implemented by a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Accordingly, in an embodiment, a computer readable storage medium is also provided, on which a computer program is stored, wherein the program, when executed by a processor, implements a code compiling method for a software development project according to any one of the embodiments.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a terminal identifier sent by a development terminal; acquiring a code warehouse access right of a development terminal according to the terminal identification; determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal; and sending the service module code to a development terminal for the development terminal to compile the service module code.
in one embodiment, the computer program when executed by the processor further performs the steps of:
Obtaining a public module code from a public module code repository; and sending the public module code and the service module code to a development terminal for the development terminal to compile the public module code and the service module code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a standard configuration file of a software development project; extracting an address list from the specification configuration file; the address list records access addresses of the plurality of code warehouses, and the access addresses respectively correspond to the plurality of business module code warehouses; and acquiring the business module code based on the access address corresponding to the business module code warehouse in the address list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a package combination compiling request sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; and responding to the package combination compiling request, acquiring a main module code in a main module code warehouse, service module codes in a plurality of service module code warehouses and a common module code in a common module code warehouse, sending the obtained codes to the project management terminal, and using the project management terminal to carry out package combination compiling on the main module code, the plurality of service module codes and the common module code.
in one embodiment, the computer program when executed by the processor further performs the steps of:
Receiving a package combination compiling instruction sent by a project management terminal; determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse which are divided by the software development project according to the standard configuration file of the software development project; acquiring a main module code in a main module code warehouse, business module codes in a plurality of business module code warehouses and a common module code in a common module code warehouse; and in response to the package combination compiling instruction, performing package combination compiling on the main module code, the plurality of service module codes and the common module code.
in one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a packet combination compiling state; if the package combination compiling state is that the package combination compiling is successful, acquiring the two-dimensional code of the complete software package, and sending the two-dimensional code to the development terminal and/or the project management terminal; the complete software package is obtained by performing package combination and compilation on the main module code, the plurality of service module codes and the common module code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
If the package combination compiling state is a package combination compiling failure, acquiring an abnormal state generated in the package combination compiling process and determining an abnormal service code; the abnormal service code is a service module code generating an abnormal state; acquiring a first coding field corresponding to an abnormal state and a second coding field corresponding to an abnormal service code from a pre-configured standard state coding field set; and combining the first coding field and the second coding field to obtain the state code of the combined packet compiling.
in one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
The terminal identification is sent to a server, the server acquires corresponding code warehouse access authority according to the terminal identification, a service module code warehouse matched with the code warehouse access authority is determined in a plurality of service module code warehouses, and a service module code is acquired from the service module code warehouse; the system comprises a plurality of service module code warehouses, a development terminal and a plurality of service module code warehouses, wherein the plurality of service module code warehouses are subjected to authority isolation based on a terminal identification of the development terminal; receiving a service module code sent by a server; and compiling the service module codes.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Receiving a public module code sent by a server; the public module code is obtained by the server from a public module code warehouse; and compiling the common module code and the service module code.
according to the computer-readable storage medium, the authority isolation can be performed on the plurality of service module code warehouses based on the terminal identification of each development terminal through the stored computer program, so that the development terminals can only access the service module code warehouse with the corresponding access authority, the influence on the service module codes of other development terminals is avoided, each development terminal can independently perform compiling test on the corresponding service module codes, and the code compiling efficiency is improved.
the technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A code compiling method for a software development project is characterized by comprising the following steps:
receiving a terminal identifier sent by a development terminal;
acquiring the code warehouse access authority of the development terminal according to the terminal identification;
determining a business module code warehouse matched with the code warehouse access authority in a plurality of business module code warehouses, and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
and sending the service module code to the development terminal for the development terminal to compile the service module code.
2. the method according to claim 1, wherein the step of sending the service module code to the development terminal for the development terminal to perform compilation processing on the service module code comprises:
Obtaining a public module code from a public module code repository;
and sending the public module code and the service module code to the development terminal, so that the development terminal can compile the public module code and the service module code.
3. The method of claim 1, wherein the step of obtaining the business module code from the business module code repository comprises:
acquiring a standard configuration file of a software development project;
extracting an address list from the specification configuration file; the address list records access addresses of a plurality of code warehouses, and the access addresses respectively correspond to the plurality of business module code warehouses;
and acquiring the business module code based on the access address corresponding to the business module code warehouse in the address list.
4. The method of claim 1, further comprising the step of:
receiving a package combination compiling request sent by a project management terminal;
Determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse divided by a software development project according to a specification configuration file of the software development project;
And responding to the package combination compiling request, acquiring a main module code in the main module code warehouse, service module codes in the service module code warehouses and a common module code in the common module code warehouse, sending the main module code, the service module codes in the service module code warehouses and the common module code in the common module code warehouse to the project management terminal, and using the project management terminal to carry out package combination compiling on the main module code, the service module codes and the common module code.
5. The method of claim 1, further comprising the step of:
Receiving a package combination compiling instruction sent by a project management terminal;
Determining a main module code warehouse, a plurality of business module code warehouses and a common module code warehouse divided by a software development project according to a specification configuration file of the software development project;
Acquiring a main module code in the main module code warehouse, business module codes in a plurality of business module code warehouses and a common module code in a common module code warehouse;
And in response to the packet combining and compiling instruction, performing packet combining and compiling on the main module code, the plurality of service module codes and the common module code.
6. The method according to claim 5, further comprising, after the step of co-packing and compiling the main module code, the plurality of service module codes, and the common module code:
acquiring a packet combination compiling state;
if the package combination compiling state is that the package combination compiling is successful, acquiring a two-dimensional code of a complete software package, and sending the two-dimensional code to the development terminal and/or the project management terminal; the complete software package is obtained by performing package combination and compilation on the main module code, the plurality of service module codes and the common module code.
7. The method according to claim 5, further comprising, after the step of co-packing and compiling the main module code, the plurality of service module codes, and the common module code:
If the package combination compiling state is a package combination compiling failure, acquiring an abnormal state generated in the package combination compiling process and determining an abnormal service code; the abnormal service code is a service module code generating the abnormal state;
Acquiring a first coding field corresponding to the abnormal state and a second coding field corresponding to the abnormal service code from a pre-configured standard state coding field set;
And combining the first coding field and the second coding field to obtain the state code of the combined packet compiling.
8. a code compiling method for a software development project is characterized by comprising the following steps:
sending a terminal identifier to a server, wherein the server acquires corresponding code warehouse access authority according to the terminal identifier, determines a service module code warehouse matched with the code warehouse access authority from a plurality of service module code warehouses, and acquires a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
Receiving the service module code sent by the server;
and compiling the service module code.
9. the method according to claim 8, wherein the step of compiling the service module code comprises:
Receiving a public module code sent by the server; the public module code is obtained by the server from a public module code repository;
and compiling the public module code and the service module code.
10. A code compiling apparatus for a software development project, comprising:
the identification receiving module is used for receiving a terminal identification sent by the development terminal;
The authority acquisition module is used for acquiring the code warehouse access authority of the development terminal according to the terminal identification;
The code acquisition module is used for determining a business module code warehouse matched with the access authority of the code warehouse in a plurality of business module code warehouses and acquiring business module codes from the business module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
and the first compiling module is used for sending the service module code to the development terminal and compiling the service module code by the development terminal.
11. a code compiling apparatus for a software development project, comprising:
The system comprises an identifier sending module, a server and a service module code warehouse, wherein the identifier sending module is used for sending a terminal identifier to the server, and is used for acquiring corresponding code warehouse access authority according to the terminal identifier, determining the service module code warehouse matched with the code warehouse access authority in the service module code warehouses and acquiring a service module code from the service module code warehouse; wherein the plurality of business module code warehouses perform authority isolation based on the terminal identification of the development terminal;
The code receiving module is used for receiving the service module code sent by the server;
and the second compiling module is used for compiling the service module codes.
12. A computer device comprising a processor and a memory, said memory storing a computer program, characterized in that said processor, when executing said computer program, implements the steps of the method according to any one of claims 1 to 9.
13. a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN201910729245.0A 2019-08-08 2019-08-08 Code compiling method, device, equipment and storage medium of software development project Active CN110569035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910729245.0A CN110569035B (en) 2019-08-08 2019-08-08 Code compiling method, device, equipment and storage medium of software development project

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910729245.0A CN110569035B (en) 2019-08-08 2019-08-08 Code compiling method, device, equipment and storage medium of software development project

Publications (2)

Publication Number Publication Date
CN110569035A true CN110569035A (en) 2019-12-13
CN110569035B CN110569035B (en) 2023-06-09

Family

ID=68774833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910729245.0A Active CN110569035B (en) 2019-08-08 2019-08-08 Code compiling method, device, equipment and storage medium of software development project

Country Status (1)

Country Link
CN (1) CN110569035B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352632A (en) * 2020-03-02 2020-06-30 北京字节跳动网络技术有限公司 Software product detection device, system, method and storage medium
CN111443906A (en) * 2020-03-25 2020-07-24 北京奇艺世纪科技有限公司 Application access method and device
CN111475197A (en) * 2020-04-13 2020-07-31 中国科学院计算机网络信息中心 Code hosting and cooperating system
CN112035160A (en) * 2020-08-31 2020-12-04 广州鲁邦通物联网科技有限公司 Code management system and control method thereof
CN112099800A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Code data processing method and device and server
CN112100581A (en) * 2020-09-22 2020-12-18 杭州安恒信息安全技术有限公司 Code protection method, device, equipment and medium
CN112416357A (en) * 2020-11-17 2021-02-26 杭州米络星科技(集团)有限公司 Communication method and device based on business module and electronic equipment
CN112506916A (en) * 2020-10-29 2021-03-16 望海康信(北京)科技股份公司 Main data processing method and system, corresponding computer equipment and storage medium
CN112631652A (en) * 2020-12-29 2021-04-09 微医云(杭州)控股有限公司 Operation instruction response method, device, equipment and storage medium
CN112732249A (en) * 2021-01-07 2021-04-30 北京字节跳动网络技术有限公司 Code processing method, device, system, equipment and medium
CN112882720A (en) * 2021-03-15 2021-06-01 北京字节跳动网络技术有限公司 Compiling method and device
CN112947907A (en) * 2020-03-23 2021-06-11 深圳市明源云科技有限公司 Method for creating code branch

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902540A (en) * 2012-09-25 2013-01-30 浙江创佳数字技术有限公司 Embedded automation development method
US9026521B1 (en) * 2011-08-19 2015-05-05 Isaac S. Daniel System and method for conducting company searches and lead generation using company code index
CN105072183A (en) * 2015-08-10 2015-11-18 浪潮(北京)电子信息产业有限公司 Management method and management device for cloud operation system (OS) software repository
CN106095523A (en) * 2016-06-03 2016-11-09 北京奇虎科技有限公司 A kind of method and system realizing Android compiling isolation
CN107133036A (en) * 2017-04-26 2017-09-05 武汉斗鱼网络科技有限公司 The management method and device of a kind of module
CN107656737A (en) * 2017-10-09 2018-02-02 郑州云海信息技术有限公司 A kind of incremental compilation method, apparatus, equipment and storage medium based on Git instruments
CN108984161A (en) * 2018-06-21 2018-12-11 广州视源电子科技股份有限公司 The software installation packet construction method and device of a kind of unification and the expansion that can classify
US20180357310A1 (en) * 2017-06-09 2018-12-13 Google Inc. Validate modification of audio-based computer program output
CN109032592A (en) * 2018-08-23 2018-12-18 常熟市盛铭信息技术有限公司 A kind of method that software code is shared mutually
CN109240691A (en) * 2018-09-14 2019-01-18 深圳易嘉恩科技有限公司 Web application system front-end module melts forwarding method
CN110096272A (en) * 2019-03-19 2019-08-06 深圳壹账通智能科技有限公司 Library file processing method, device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9026521B1 (en) * 2011-08-19 2015-05-05 Isaac S. Daniel System and method for conducting company searches and lead generation using company code index
CN102902540A (en) * 2012-09-25 2013-01-30 浙江创佳数字技术有限公司 Embedded automation development method
CN105072183A (en) * 2015-08-10 2015-11-18 浪潮(北京)电子信息产业有限公司 Management method and management device for cloud operation system (OS) software repository
CN106095523A (en) * 2016-06-03 2016-11-09 北京奇虎科技有限公司 A kind of method and system realizing Android compiling isolation
CN107133036A (en) * 2017-04-26 2017-09-05 武汉斗鱼网络科技有限公司 The management method and device of a kind of module
US20180357310A1 (en) * 2017-06-09 2018-12-13 Google Inc. Validate modification of audio-based computer program output
CN107656737A (en) * 2017-10-09 2018-02-02 郑州云海信息技术有限公司 A kind of incremental compilation method, apparatus, equipment and storage medium based on Git instruments
CN108984161A (en) * 2018-06-21 2018-12-11 广州视源电子科技股份有限公司 The software installation packet construction method and device of a kind of unification and the expansion that can classify
CN109032592A (en) * 2018-08-23 2018-12-18 常熟市盛铭信息技术有限公司 A kind of method that software code is shared mutually
CN109240691A (en) * 2018-09-14 2019-01-18 深圳易嘉恩科技有限公司 Web application system front-end module melts forwarding method
CN110096272A (en) * 2019-03-19 2019-08-06 深圳壹账通智能科技有限公司 Library file processing method, device, computer equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
MELODY KRAMER: "How to use GitHub and the terminal: a guide", 《HTTPS://18F.GSA.GOV/2015/03/03/HOW-TO-USE-GITHUB-AND-THE-TERMINAL-A-GUIDE/》 *
P GAO等: "Research on Security Protection Technology System of Power internet of things", 《2019 IEEE 8TH JOINT INTERNATIONAL INFORMATION TECHNOLOGY AND ARTIFICIAL INTELLIGENCE CONFERENCE (ITAIC)》 *
伍杏玲: "小程序多端开源框架黑马!它是如何做到快应用小程序自由转译的?", 《HTTPS://BAIJIAHAO.BAIDU.COM/S?ID=1629404442357322941&WFR=SPIDER&FOR=PC》 *
李孟辉: "基于Web的云开发平台的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
肖坚: "基于Docker的应用服务云平台的设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
陈博俊: "基于Docker的前端发布平台的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352632A (en) * 2020-03-02 2020-06-30 北京字节跳动网络技术有限公司 Software product detection device, system, method and storage medium
CN111352632B (en) * 2020-03-02 2023-07-04 抖音视界有限公司 Software product detection device, system, method and storage medium
CN112947907A (en) * 2020-03-23 2021-06-11 深圳市明源云科技有限公司 Method for creating code branch
CN112947907B (en) * 2020-03-23 2024-03-12 深圳市明源云科技有限公司 Method for creating code branches
CN111443906A (en) * 2020-03-25 2020-07-24 北京奇艺世纪科技有限公司 Application access method and device
CN111443906B (en) * 2020-03-25 2023-09-05 北京奇艺世纪科技有限公司 Application access method and device
CN111475197A (en) * 2020-04-13 2020-07-31 中国科学院计算机网络信息中心 Code hosting and cooperating system
CN112035160A (en) * 2020-08-31 2020-12-04 广州鲁邦通物联网科技有限公司 Code management system and control method thereof
CN112100581A (en) * 2020-09-22 2020-12-18 杭州安恒信息安全技术有限公司 Code protection method, device, equipment and medium
CN112099800A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Code data processing method and device and server
CN112099800B (en) * 2020-09-27 2024-03-08 中国建设银行股份有限公司 Code data processing method, device and server
CN112506916A (en) * 2020-10-29 2021-03-16 望海康信(北京)科技股份公司 Main data processing method and system, corresponding computer equipment and storage medium
CN112506916B (en) * 2020-10-29 2024-04-09 望海康信(北京)科技股份公司 Main data processing method, system, corresponding computer equipment and storage medium
CN112416357A (en) * 2020-11-17 2021-02-26 杭州米络星科技(集团)有限公司 Communication method and device based on business module and electronic equipment
CN112631652A (en) * 2020-12-29 2021-04-09 微医云(杭州)控股有限公司 Operation instruction response method, device, equipment and storage medium
CN112732249A (en) * 2021-01-07 2021-04-30 北京字节跳动网络技术有限公司 Code processing method, device, system, equipment and medium
CN112882720A (en) * 2021-03-15 2021-06-01 北京字节跳动网络技术有限公司 Compiling method and device
CN112882720B (en) * 2021-03-15 2024-03-22 抖音视界有限公司 Compiling method and device

Also Published As

Publication number Publication date
CN110569035B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN110569035B (en) Code compiling method, device, equipment and storage medium of software development project
US11467952B2 (en) API driven continuous testing systems for testing disparate software
CN108197200B (en) Log tracking method and device, computer equipment and storage medium
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
US10409786B2 (en) Deployment of applications confirming to application data sharing and decision service platform schema
CN111475376B (en) Method, apparatus, computer device and storage medium for processing test data
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN111831567B (en) Application test environment configuration method, device, system and medium
CN111506358B (en) Method and device for updating container configuration
CN108062714B (en) Annuity data sending method and device, computer equipment and storage medium
CN110727575A (en) Information processing method, system, device and storage medium
CN113330419A (en) Equipment application installation method and device
JP7068912B2 (en) Information processing equipment, equipment, defect analysis system, defect analysis method and program
CN111522881B (en) Service data processing method, device, server and storage medium
CN116594874A (en) Method, device, computer equipment and storage medium for testing availability of running environment
CN113535544A (en) Running method of sub-application to be debugged, computer equipment and device
CN112231377A (en) Data mapping method, system, device, server and storage medium
KR102038802B1 (en) Method for Apparatus for Integration Management of Web Page
US11681609B1 (en) Identifying feature modification in software builds using baseline data
CN112165406B (en) Interface message testing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant