CN104125504B - Deployment method, device and system based on continuous integration - Google Patents
Deployment method, device and system based on continuous integration Download PDFInfo
- Publication number
- CN104125504B CN104125504B CN201410355703.6A CN201410355703A CN104125504B CN 104125504 B CN104125504 B CN 104125504B CN 201410355703 A CN201410355703 A CN 201410355703A CN 104125504 B CN104125504 B CN 104125504B
- Authority
- CN
- China
- Prior art keywords
- intelligent television
- continuous integrating
- address
- equipment
- information
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a deployment method, a deployment device and a deployment system based on continuous integration, and is applied into the test process of a smart television based on an android system. The deployment method mainly includes that a continuous integration device performs instruction interaction with the smart television through a serial port, and sends a stop command when monitors a running bootstrap program of the smart television, and then the smart television stops the running bootstrap program, and configures a self IP (Internet protocol) address according to received configuration information; the continuous integration device sends a flashing command to the smart television, and then the smart television obtains a generated upgrade document and executes flashing operation according to IP address information of the continuous integration device, matched with IP address information of the smart television. Accordingly, the deployment method, the deployment device and the deployment system based on the continuous integration remedy the defect that the smart television based on the android system can not achieve automatic flashing, and simultaneously avoid initiative intervention of testing personnel, and improve flashing efficiency.
Description
Technical field
The present invention relates to intelligent television technical field of measurement and test, more particularly to a kind of dispositions method based on continuous integrating, dress
Put and system.
Background technology
In the prior art, each intelligent television can all experience multiple quality testing, except hardware configuration before dispatching from the factory
Outside needing to be detected, the software systems of intelligent television also turn into one of key of detection.The detection bag of common software systems
The deployment to intelligent television is included, i.e. compiling, brush machine and test.
Under Current software development mode, developer needs after this authentication, and the source code that will can just change uploads source code
Script after compiling once, is then sent to tester and entered by server, compiler server timing compiling as upgrade file
Pedestrian's work brush machine, test.In general, tester before brush machine is carried out to intelligent television to be tested, it is necessary to manually weight
Intelligent television is opened, and disposes all data in the system disk space of intelligent television, upgrading text is then included by extrapolation
The USB flash disk of part copies the upgrade file, then the upgrade file is installed in intelligent television, realizes the brush to intelligent television
Machine, i.e., the upgrading software for more renewing.
During above-mentioned artificial deployment, it is substantially all the artificial operation of needs to realize, the integration complexity of software systems
It is higher, meanwhile, Integrated Simulation it is less efficient.It is embodied in the following aspects:
1st, the code quality for uploading is sent different, so as to the situation for causing the upgrade file of issue unstable.
If the 2, just finding that upgrade file has serious quality problems before the test begins, it is difficult to upgrade file is debugged,
Or the source code to uploading is debugged, and has a strong impact on testing progress;
If compiling number of times being increased by manually or the mode of manual test verification quality being carried out to the code after compiling, can
Being doubled and redoubled for human cost is caused, increases the complexity of compiling.
3rd, the protection of usage right problem of core code or research and development technology;
If closing all of source code information, it is impossible to ensure the quality and test result of the upgrade file of issue;If no
Closing source code information, then may reveal the source code information of need for confidentiality.
4th, upgrade file is sent to intelligent television by way of extrapolation installation kit, and restarts intelligent television manually, very
Difficulty realizes the automatic brush machine of intelligent television.
The content of the invention
The embodiment of the present invention provides a kind of dispositions method, the apparatus and system of the intelligent television based on continuous integrating, is used to
Solving the problems, such as present in prior art artificial deployment causes that software system integration complexity is high, efficiency is low.
The embodiment of the present invention uses following technical scheme:
A kind of dispositions method based on continuous integrating, is applied in the intelligent television of Android system, methods described bag
Include:
Continuous integrating equipment sends reset command by the serial ports being connected with intelligent television to the intelligent television, to indicate
The intelligent television is restarted;
Serial ports described in the continuous integrating equipment utilization monitors the running status of the intelligent television, and is monitoring operation
During bootstrap, sent to the intelligent television and ceased and desisted order, to indicate the intelligent television bootstrap out of service;
The continuous integrating equipment receives the stopping response that the intelligent television is returned, and matches somebody with somebody to intelligent television transmission
Confidence ceases, to indicate the intelligent television that the IP address of itself is configured according to the configuration information, wherein, in the configuration information
IP address information comprising intelligent television and with the continuous integrating equipment of the IP address information match of the intelligent television
IP address information;
After monitoring that the intelligent television completes configuration operation, the continuous integrating equipment sends to the intelligent television
Brush machine order, to indicate the intelligent television to be believed according to the IP address with the continuous integrating equipment of own IP address information match
Breath obtains the upgrade file that has generated and performs the operation of brush machine.
In embodiments of the present invention, continuous integrating equipment carries out information exchange by with intelligent television, is capable of achieving intelligence electricity
Depending on automatic brush machine so that, it is to avoid the pro-active intervention of tester, improve brush machine, the efficiency of test, and, can be whole
Bad problem is fed back during deployment in time, the accuracy of deployment is lifted.
A kind of continuous integrating equipment, the equipment includes:
Intelligent television monitoring unit, the operation shape of the intelligent television is monitored for the serial ports by being connected with intelligent television
State;
Serial port command transmitting element, for sending reset command to the intelligent television using the serial ports, to indicate
Intelligent television is stated to restart;And
For when intelligent television monitoring unit monitors operation bootstrap, being sent to the intelligent television and stopping life
Order;And
For to the intelligent television send configuration information, itself being configured according to the configuration information with indicating intelligent TV
IP address, wherein, in the configuration information IP address information comprising intelligent television and with the IP of intelligent television ground
The IP address information of the continuous integrating equipment of location information match;And
For after intelligent television monitoring unit monitors that the intelligent television completes configuration operation, to the intelligent television
Brush machine order is sent, to indicate the intelligent television according to the IP ground with the continuous integrating equipment of own IP address information match
Upgrade file that location acquisition of information has been generated simultaneously performs the operation of brush machine;
Serial ports responds receiving unit, for receiving the stopping response that the intelligent television is returned.
In embodiments of the present invention, by the intelligent television monitoring unit of intelligent television, serial port command transmitting element and
Serial ports responds receiving unit and continuous integrating equipment and carries out information exchange, so as to realize automatic brush machine, it is to avoid tester's
Pro-active intervention, improves brush machine, the efficiency of test, and, can in time feed back bad problem, lifting parts during whole deployment
The accuracy of administration.
A kind of dispositions method based on continuous integrating, is applied in the intelligent television of Android system, methods described bag
Include:
Intelligent television receives reset command by the serial ports being connected with continuous integrating equipment, and is held according to the reset command
Row reboot operation;
The intelligent television sets according to ceasing and desisting order for receiving, bootstrap out of service to the continuous integrating
Standby return stops response;
The intelligent television receives the configuration information that the continuous integrating equipment sends, according to configuration information configuration certainly
The IP address of body, wherein, IP address information and the IP with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment that address information matches;
The intelligent television receives the brush machine order that the continuous integrating equipment sends, and according to own IP address information
Upgrade file that the IP address acquisition of information of the continuous integrating equipment for matching has been generated simultaneously performs the operation of brush machine.
In embodiments of the present invention, intelligent television carries out information exchange by with continuous integrating equipment, is capable of achieving itself
Automatic brush machine, so that, it is to avoid the pro-active intervention of tester, brush machine, the efficiency of test are improved, and, can entirely dispose
During feed back bad problem in time, lift the accuracy of deployment.
A kind of intelligent television, the intelligent television includes:
Serial port command receiving unit, for the serial ports reception reset command by being connected with continuous integrating equipment, and according to
The reset command triggers reboot operation, and
For receiving ceasing and desisting order for the continuous integrating equipment transmission, and according to the guiding out of service of ceasing and desisting order
Program, and
For receiving the configuration information that the continuous integrating equipment sends, and
For receiving the brush machine order that the continuous integrating equipment sends;
Serial ports responds transmitting element, and response is stopped for being returned to continuous integrating equipment;
Dispensing unit, the configuration information for being received according to the serial port command receiving unit configures the IP ground of itself
Location, wherein, IP address information and the IP address information with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment for matching;
Upgrade unit, after receiving brush machine order in the serial port command receiving unit, according to itself IP ground
Upgrade file that the IP address acquisition of information of the continuous integrating equipment of location information match has been generated simultaneously performs the operation of brush machine.
In embodiments of the present invention, by the serial port command receiving unit of intelligent television, dispensing unit and upgrade unit
Information exchange is carried out with continuous integrating equipment, so as to realize automatic brush machine, it is to avoid the pro-active intervention of tester, brush is improved
Machine, the efficiency of test, and, bad problem can be in time fed back during whole deployment, lift the accuracy of deployment.
A kind of deployment system based on continuous integrating, is applied in the intelligent television of Android system, including:
Continuous integrating equipment, reset command is sent for the serial ports by being connected with intelligent television to the intelligent television,
The running status of the intelligent television is monitored using the serial ports, and when operation bootstrap is monitored, to the intelligence electricity
Ceased and desisted order depending on transmission, and receive the stopping response that the intelligent television is returned, and believed to the intelligent television send configuration
Breath, after monitoring that the intelligent television completes configuration operation, brush machine order is sent to the intelligent television;
Intelligent television, for being restarted according to the reset command for receiving, according to the configuration information configuration for receiving certainly
The IP address of body, and generated according to the IP address acquisition of information of the continuous integrating equipment with own IP address information match
Upgrade file and perform brush machine operation;
Wherein, IP address information and the IP address with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment of information match.
In embodiments of the present invention, using the portion based on continuous integrating being made up of continuous integrating equipment and intelligent television
Administration's system, the automatic brush machine of intelligent television is realized by the information exchange between intelligent television and continuous integrating equipment, so that,
The pro-active intervention of tester is avoided, brush machine, the efficiency of test is improved, and, can in time be fed back during whole deployment
Bad problem, lifts the accuracy of deployment.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of Organization Chart of the deployment system of continuous integrating being related in the embodiment of the present invention;
Fig. 2 (a) is the structural representation of continuous integrating equipment provided in an embodiment of the present invention;
Fig. 2 (b) is the schematic diagram of the deployment operation achieved by continuous integrating equipment provided in an embodiment of the present invention;
Fig. 3 is the structural representation of intelligent television provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the rights management issues that automatic compilation operations provided in an embodiment of the present invention can solve the problem that;
Fig. 5 is a kind of flow chart of dispositions method based on continuous integrating provided in an embodiment of the present invention;
Fig. 6 is the general flow chart that a kind of intelligent television provided in an embodiment of the present invention is tested automatically.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into
One step ground is described in detail, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
For the intelligent television of Android system, in embodiments of the present invention, compiling, brush machine, three streams of part of test
Journey is referred to as deployment.
During actual development, many team are inevitably involved, the project that many members cooperate, due to managerial style
Involved problem in many factors such as different, technology realization, easily generation background technology.
In order to solve problems of the prior art, continuous integrating thought is introduced the present invention intelligence of Android system
In energy TV software development process, after developer submits code to, the frequently automatic triggering of (triggering frequency can set)
Automatic compiling, automatic brush machine, this continuous operating process is tested automatically;And, after automatic compiling terminates every time, can
Show the submission information of source code in development process by the web page of continuous integrating equipment, and by configuring web page
Association attributes, the jar bags of each developer's demand are uploaded the web page of continuous integrating equipment as annex, so that, it is to avoid
Leakage core code, protects research and development technology;Meanwhile, realizing different developers can obtain the code letter of respective needs
The purpose of breath.In addition, continuous integrating equipment enters interacting for line command by the serial ports being connected with intelligent television with intelligent television, and
Upgrade file is sent to intelligent television by network interface, it is automatic so as to reach to cause that intelligent television installs the upgrade file
The purpose of brush machine;And, automatic test only subsequently can also be realized by intelligent television and the information exchange continued between equipment,
So as to, it is to avoid the pro-active intervention of tester, brush machine, the efficiency of test are improved, and, can be during whole deployment in time
Bad problem is fed back, the accuracy of deployment is lifted.
Technical scheme is described in detail below by specific embodiment, it is necessary to explanation is, this hair
Bright including but not limited to following examples.
As shown in figure 1, being the Organization Chart of the deployment system of a kind of continuous integrating being related in the embodiment of the present invention, the system
In mainly include:Continuous integrating equipment 101, intelligent television 102.
Continuous integrating equipment 101, sends for the serial ports by being connected with intelligent television 102 to the intelligent television 102
Reset command, the running status of the intelligent television 102 is monitored using the serial ports, and when operation bootstrap is monitored,
Sent to the intelligent television 102 and ceased and desisted order, and receive the stopping response that the intelligent television 102 is returned, and to described
The send configuration information of intelligent television 102, after monitoring that the intelligent television 102 completes configuration operation, to the intelligent television
102 send brush machine order.
Before deployment operation is carried out, user can configure to the continuous integrating equipment 101 according to the actual requirements, can be with
Including following aspect:
It is the condition of the configuration triggering deployment operation of continuous integrating equipment 101, for example:Source code can be uploaded to according to source code
The frequency of server, sets the cycle of triggering deployment operation.Generally, the cycle of the triggering deployment operation can basis
The cycle of automatic compiling is set, and uploads source code whenever, and continuous integrating equipment obtains source code with certain cycle
Information, and trigger automatic compilation operations.
The address of source code, the i.e. address of source code server are obtained for the configuration of continuous integrating equipment 101.In configuration successful
Afterwards, source code information can be obtained from the respective stored space of source code server according to the address information.
It is specific action type in the configuration deployment operation of continuous integrating equipment 101, mainly relates in embodiments of the present invention
And:Compiling, three kinds of action types of brush machine and test.After configuration is good, that is, represent that the continuous integrating equipment can continue to realize
Above-mentioned three kinds of operations.
It is the configuration of continuous integrating equipment 101 autopiler, automatic brush machine program and autotest program.
Meanwhile, the source code that the source code obtained dedicated for storage is opened up in the continuous integrating equipment 101 stores empty
Between.In the continuous integrating equipment 101 according to the address of the source code server being pre-configured with, corresponding source code information is obtained,
Then the source code memory space of the continuous integrating equipment 101 is arrived in synchronous storage.
As shown in Fig. 2 (a), the structural representation of continuous integrating equipment provided in an embodiment of the present invention, mainly including following
Functional unit:
Intelligent television monitoring unit 1011, the fortune of the intelligent television is monitored for the serial ports by being connected with intelligent television
Row state;
Serial port command transmitting element 1012, for sending reset command to the intelligent television using the serial ports, to refer to
Show that the intelligent television is restarted;And
For when intelligent television monitoring unit 1011 monitors operation bootstrap, being sent to the intelligent television and being stopped
Order;And
For to the intelligent television send configuration information, itself being configured according to the configuration information with indicating intelligent TV
IP address, wherein, in the configuration information IP address information comprising intelligent television and with the IP of intelligent television ground
The IP address information of the continuous integrating equipment of location information match;And
For after intelligent television monitoring unit 1011 monitors that the intelligent television completes configuration operation, to the intelligence
TV send brush machine order, with indicate the intelligent television according to the continuous integrating equipment of own IP address information match
Upgrade file that IP address acquisition of information has been generated simultaneously performs the operation of brush machine;
Serial ports responds receiving unit 1013, for receiving the stopping response that the intelligent television is returned.
Preferably, the continuous integrating equipment also includes:Notification unit, in automatic compiling or automatic brush machine or automatic survey
When there is mistake during examination, circular mail is sent to network side keeper in time.
Intelligent television 102, for being restarted according to the reset command for receiving, according to the configuration information configuration for receiving
The IP address of itself, and given birth to according to the IP address acquisition of information of the continuous integrating equipment with own IP address information match
Into upgrade file and perform upgrading deployment operation;Wherein, in the configuration information comprising intelligent television IP address information with
And the IP address information with the continuous integrating equipment of the IP address information match of the intelligent television.
Additionally, the continuous integrating equipment is interacted with intelligent television to be additionally operable to complete automatic compilation operations and automatic survey jointly
Examination operation, shown in such as Fig. 2 (b).
As shown in figure 3, being the structural representation of intelligent television provided in an embodiment of the present invention, mainly include following functions list
Unit:
Serial port command receiving unit 1021, reset command is received for the serial ports by being connected with continuous integrating equipment, and
Reboot operation is triggered according to the reset command, and
For receiving ceasing and desisting order for the continuous integrating equipment transmission, and according to the guiding out of service of ceasing and desisting order
Program, and
For receiving the configuration information that the continuous integrating equipment sends, and
For receiving the brush machine order that the continuous integrating equipment sends;
Serial ports responds transmitting element 1022, and response is stopped for being returned to continuous integrating equipment;
Dispensing unit 1023, the configuration information for being received according to the serial port command receiving unit 1021 is configured certainly
The IP address of body, wherein, IP address information and the IP with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment that address information matches;
Brush machine unit 1024, after receiving brush machine order in the serial port command receiving unit 1021, according to
Upgrade file that the IP address acquisition of information of the continuous integrating equipment of own IP address information match has been generated simultaneously performs brush machine
Operation.
Additionally, the deployment system of the continuous integrating is additionally operable to perform automatic compilation operations and automatic test operation, specifically
Content is illustrated by the following examples.
After the continuous integrating equipment successfully obtains source code information, can trigger the autopiler of configuration is carried out certainly
Dynamic compilation operations, form compilation script, i.e., for the upgrade file of follow-up test.Because the realization of automatic compilation operations is more simple
Single, the present invention is described in detail not to this, and the power that the automatic compilation operations can solve the problem that only is illustrated below in conjunction with Fig. 4
Limit problem of management.
Using the autopiler of configuration, the source code information to obtaining is compiled automatically, after the completion of compiling, profit
With the server/browser structure of continuous integrating equipment, web page is configured, because the code that continuous integrating equipment is obtained is submitted to
Information is peeled off from code inspection software, and is shown in the way of web page, thus all testers and outsourcing
Personnel can see.In automatic compilation process, the simply code that each developer can obtain submits information to, can not be true
It is positive to obtain source code information, so that, in the case where the source code information for ensureing to submit to can be developed monitored by personnel, protect
Core code in development process will not be leaked, and rights management is solved the problems, such as well.
Meanwhile, using the component characteristic of continuous integrating equipment, after automatic compilation operations triggering, necessary jar can be wrapped
Pass, and be present in the web page of continuous integrating equipment with webpage attachment version, it is possible to be sent to each developer in real time,
Realize that core code is separated with required jar bags.So as to, it is to avoid the demand of each developer is manually tracked, meets,
In the case where the jar bags in ensureing compilation process can be known by each developer, human cost is saved, protected out
Core code during hair will not be leaked, and rights management is also solved the problems, such as well.
After the completion of automatic compilation operations, the continuous integrating equipment can be operated automatically into automatic brush machine.Compared to existing
Intelligent television of restarting manually in technology carries out brush machine, the TFTP that the present invention is supported using bottom chip platform
Brush machine pattern and automatic brush machine program perform a series of flows of brush machine.
As shown in figure 5, be a kind of flow chart of the dispositions method based on continuous integrating provided in an embodiment of the present invention, mainly
It is applied in android system intelligent television, and the method mainly describes the process of automatic brush machine, specifically includes following step
Suddenly:
Step 201:Continuous integrating equipment sends reset command by the serial ports being connected with intelligent television to intelligent television.
In the embodiment of the present invention involved serial ports be in the prior art it is all can realize order transmission serial ports.
Step 202:Intelligent television performs reboot operation according to the reset command.
Step 203:The continuous integrating equipment utilization serial ports monitors the running status of intelligent television, and is monitoring that operation draws
During helical pitch sequence, sent to intelligent television and ceased and desisted order.
In this step 203, in intelligent television restarting process, the day of each operation phase can be represented in display page presentation
Will information, generally, can carry the keyword of operation phase in the log information, continuous integrating equipment can be by this
Serial ports reads the keyword in log information in real time, and then knows the running status of the intelligent television.
Because the operation of brush machine belongs to bootstrap (commonly referred to as:Loader the part of functions in), therefore, be in guiding
In program operation process, the normal operation of the bootstrap is terminated by being ceased and desisted order to intelligent television transmission, i.e., stopped at this
Brush machine operation is only carried out under running status to intelligent television.
Step 204:Intelligent television sets according to ceasing and desisting order for receiving, bootstrap out of service to continuous integrating
Standby return stops response.
Step 205:Continuous integrating equipment receives the stopping response that intelligent television is returned, and believes to intelligent television send configuration
Breath, wherein, IP address information and the IP address information with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment for matching.
, it is necessary to the state of the intelligent television tested may be inconsistent (current to be tested during actual deployment
Intelligent television before may not be configured, or current intelligent television to be tested configuration information and current network environment
It is not inconsistent), this is accomplished by, when carrying out brush machine every time and operating, all sending a configuration information, so as to by current intelligence to be tested
The configuration information of TV is set to consistent with current network conditions.
From above-mentioned steps 205, included in the configuration information be intelligent television IP address information and continue
The IP address information of integrated equipment, why using IP address information, because:The continuous integrating equipment is connection network,
And intelligent television and between continuous integrating equipment can not by Serial Port Transmission file, therefore, other numbers can only be set up
Connected according to transmission, and consider the requirement of transmission speed, the connection of simple data wire can not meet, thus, intelligence electricity
Depending on setting up network connection between continuous integrating equipment, mode of the present invention not to network connection is specifically limited, wirelessly connects
Connect, wired connection.In view of transmission speed, preferably based on wired connection.And two device talks must be all on network
There is IP address, accordingly it is desirable to intelligent television send configuration information, it is used to configure the IP address of intelligent television, meanwhile, inform this
The IP address of intelligent television continuous integrating equipment, it is ensured that can be from correct address acquisition upgrade file.
Step 206:The intelligent television receives the configuration information that the continuous integrating equipment sends, according to described with confidence
Breath configures the IP address of itself.
Step 207:After monitoring that intelligent television completes configuration operation, continuous integrating equipment sends brush machine to intelligent television
Order.
Step 208:Intelligent television receives the brush machine order that the continuous integrating equipment sends, and according to own IP address
Upgrade file that the IP address acquisition of information of the continuous integrating equipment of information match has been generated simultaneously performs the operation of brush machine.
Intelligent television connects after brush machine order is received according to the network itself set up and continuous integrating equipment between
Connect, the upgrade file of compiled completion is obtained from continuous integrating equipment;And perform the operation of brush machine by installing the upgrade file.
General brush machine operation is provided to the upgrade file obtained using new integrated source code information compiling, will be to be measured
The corresponding software system of the intelligent television of examination is updated, perfect.
Preferably, after monitoring that the intelligent television execution brush machine operation terminates, the continuous integrating equipment is to described
Intelligent television sends test instruction, to indicate the intelligent television to perform test operation.
As shown in fig. 6, being a kind of general flow chart of the automatic test of intelligent television provided in an embodiment of the present invention, specific bag
Include:
Step 301:Continuous integrating equipment obtains test source code from source code server.
Step 302:It is the test text of apk (android installation kits) form that continuous integrating equipment will test compilation of source code
Part.
Step 303:Continuous integrating equipment is that the test file of the apk forms is marked (label), and by adb
Instruction indicating intelligent TV carries out the test of corresponding test case.
In the step 303, can indicate to carry out a test for test case in each adb instructions, it is also possible to while
Instruction carries out the test of multiple test cases, and the present invention is defined not to this.Wherein, test case can be:Whole machine work(
Energy test, module interface test, ui testing etc..
Preferably, the upgrade file is obtained by above-mentioned automatic compiling, specially:
According to predetermined period and the storage address of configured source code, source code information is obtained;To the source code
Information is compiled, and generates upgrade file.
The above-mentioned dispositions method based on continuous integrating is mainly performed by the deployment system based on continuous integrating, described to be based on
Continuous integrating equipment can be the equipment with the information processing function such as computer in the deployment system of continuous integrating.And this continues
Integrated equipment can be automatic, carry out massive values computation at high speed according to the program being previously stored, and information processing modern times
Change intelligent electronic device, its hardware includes but is not limited to microprocessor, embedded device etc..
In the above-described embodiments, automatic compiling, automatic brush machine, automatic test is all to utilize to be integrated in the continuous integrating equipment
In program realize that described program includes the set of command sequence that any computer language is write, including but not limited to
The command sequence collection of simple function can be realized, multi-functional command sequence collection etc. can be realized.
By above technical scheme, the intelligent television for Android system carries out deployment operation, will compile automatically, from
Dynamic brush machine and automatic test are integrated into continuous integrating equipment so that the deployment operation can be triggered according to predetermined period, and
Automatic compiling, automatic brush machine and automatic test operation are performed according to default Run Script;Due to being utilized in automatic compilation process
The characteristics of continuous integrating, the extraction information of source code is illustrated in wed webpages, and jar bags are submitted in the form of annex
Code inspection software, while ensureing that each developer can know code compilation situation, it is to avoid the letting out of core code
Dew, meanwhile, save human resources;And, the realization of automatic brush machine, the intelligent television that compensate for Android system cannot be real
The existing defect of automatic brush machine, it is even more important that the present invention can realize it is automatic perform successively automatic compiling, automatic brush machine and from
The operation of dynamic test, while lower deployment cost is reduced, improves the efficiency of deployment.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention
God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of dispositions method based on continuous integrating, it is characterised in that be applied in the intelligent television of Android system, institute
The method of stating includes:
Continuous integrating equipment sends reset command by the serial ports being connected with intelligent television to the intelligent television, described to indicate
Intelligent television is restarted;The continuous integrating equipment refer to frequently can be triggered automatically after the code submitted to is read automatic compiling,
Automatic brush machine, the equipment for testing this continuous operating process automatically;
Serial ports described in the continuous integrating equipment utilization monitors the running status of the intelligent television, and is monitoring operation guiding
During program, sent to the intelligent television and ceased and desisted order, to indicate the intelligent television bootstrap out of service;
The continuous integrating equipment receives the stopping response that the intelligent television is returned, and believes to the intelligent television send configuration
Breath, to indicate the intelligent television that the IP address of itself is configured according to the configuration information, wherein, included in the configuration information
The IP address information of intelligent television and the IP ground with the continuous integrating equipment of the IP address information match of the intelligent television
Location information;
After monitoring that the intelligent television completes configuration operation, the continuous integrating equipment sends brush machine to the intelligent television
Order, to indicate the intelligent television to be obtained according to the IP address information of the continuous integrating equipment with own IP address information match
Take the upgrade file that has generated and perform the operation of brush machine.
2. the method for claim 1, it is characterised in that methods described also includes:
After monitoring that the intelligent television execution brush machine operation terminates, the continuous integrating equipment sends to the intelligent television
Test instruction, to indicate the intelligent television to perform test operation.
3. the method as described in any one of claim 1 or 2, it is characterised in that the upgrade file is generated in the following manner:
According to predetermined period and the storage address of configured source code, source code information is obtained;
The source code information is compiled, upgrade file is generated.
4. a kind of continuous integrating equipment, the continuous integrating equipment refers to that frequently can be triggered automatically after the code submitted to is read
Automatic compiling, automatic brush machine, the equipment for testing this continuous operating process automatically;Characterized in that, the equipment includes:
Intelligent television monitoring unit, the running status of the intelligent television is monitored for the serial ports by being connected with intelligent television;
Serial port command transmitting element, for sending reset command to the intelligent television using the serial ports, to indicate the intelligence
Energy TV is restarted;And
For when intelligent television monitoring unit monitors operation bootstrap, being sent to the intelligent television and being ceased and desisted order;With
And
For to the intelligent television send configuration information, the IP of itself being configured according to the configuration information with indicating intelligent TV
Address, wherein, the IP address information comprising intelligent television and the IP address letter with the intelligent television in the configuration information
The IP address information of the continuous integrating equipment of manner of breathing matching;And
For after intelligent television monitoring unit monitors that the intelligent television completes configuration operation, being sent to the intelligent television
Brush machine order, to indicate the intelligent television to be believed according to the IP address with the continuous integrating equipment of own IP address information match
Breath obtains the upgrade file that has generated and performs the operation of brush machine;
Serial ports responds receiving unit, for receiving the stopping response that the intelligent television is returned.
5. equipment as claimed in claim 4, it is characterised in that the serial port command transmitting element, is additionally operable to monitoring
State intelligent television to perform after the operation of brush machine terminates, test instruction is sent to the intelligent television, to indicate the intelligent television to hold
Row test operation.
6. a kind of dispositions method based on continuous integrating, it is characterised in that be applied in the intelligent television of Android system, institute
The method of stating includes:
Intelligent television receives reset command by the serial ports being connected with continuous integrating equipment, and performs weight according to the reset command
Open operation;The continuous integrating equipment refers to that automatic compiling, automatic brush frequently can be automatically triggered after the code submitted to is read
Machine, the equipment for testing this continuous operating process automatically;
The intelligent television is returned according to ceasing and desisting order for receiving, bootstrap out of service to the continuous integrating equipment
Return and stop response;
The intelligent television receives the configuration information that the continuous integrating equipment sends, and itself is configured according to the configuration information
IP address, wherein, IP address information and the IP address with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment of information match;
The intelligent television receives the brush machine order that the continuous integrating equipment sends, and according to own IP address information phase
Upgrade file that the IP address acquisition of information of the continuous integrating equipment matched somebody with somebody has been generated simultaneously performs the operation of brush machine.
7. method as claimed in claim 6, it is characterised in that methods described also includes:
The intelligent television receives the test instruction that the continuous integrating equipment sends, and performs test according to the test instruction
Operation.
8. method as claimed in claim 7, it is characterised in that the upgrade file is generated in the following manner:
According to predetermined period and the storage address of configured source code, source code is obtained;
The source code is compiled, upgrade file is generated.
9. a kind of intelligent television, it is characterised in that the intelligent television includes:
Serial port command receiving unit, reset command is received for the serial ports by being connected with continuous integrating equipment, and according to described
Reset command triggers reboot operation, and the continuous integrating equipment refers to that frequently can be triggered automatically after the code submitted to is read certainly
Dynamic compiling, automatic brush machine, the equipment for testing this continuous operating process automatically;And
For receiving ceasing and desisting order for the continuous integrating equipment transmission, and according to the guiding journey out of service of ceasing and desisting order
Sequence, and
For receiving the configuration information that the continuous integrating equipment sends, and
For receiving the brush machine order that the continuous integrating equipment sends;
Serial ports responds transmitting element, and response is stopped for being returned to continuous integrating equipment;
Dispensing unit, the configuration information for being received according to the serial port command receiving unit configures the IP address of itself,
Wherein, IP address information and the IP address information phase with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment matched somebody with somebody;
Upgrade unit, after receiving brush machine order in the serial port command receiving unit, believes according to own IP address
The upgrade file that has generated of IP address acquisition of information of the continuous integrating equipment of manner of breathing matching simultaneously performs the operation of brush machine.
10. a kind of deployment system based on continuous integrating, it is characterised in that be applied in the intelligent television of Android system, wraps
Include:
Continuous integrating equipment, reset command is sent for the serial ports by being connected with intelligent television to the intelligent television, is utilized
The serial ports monitors the running status of the intelligent television, and when operation bootstrap is monitored, is sent out to the intelligent television
Send and cease and desist order, and receive the stopping response that the intelligent television is returned, and to the intelligent television send configuration information,
After monitoring that the intelligent television completes configuration operation, brush machine order is sent to the intelligent television;The continuous integrating equipment
Refer to that automatic compiling, automatic brush machine frequently can be automatically triggered after the code submitted to is read, this continuous behaviour is tested automatically
The equipment for making flow;
Intelligent television, for being restarted according to the reset command for receiving, itself is configured according to the configuration information for receiving
IP address, and the liter generated according to the IP address acquisition of information with the continuous integrating equipment of own IP address information match
Level file simultaneously performs the operation of brush machine;
Wherein, IP address information and the IP address information with the intelligent television comprising intelligent television in the configuration information
The IP address information of the continuous integrating equipment for matching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410355703.6A CN104125504B (en) | 2014-07-24 | 2014-07-24 | Deployment method, device and system based on continuous integration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410355703.6A CN104125504B (en) | 2014-07-24 | 2014-07-24 | Deployment method, device and system based on continuous integration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104125504A CN104125504A (en) | 2014-10-29 |
CN104125504B true CN104125504B (en) | 2017-05-17 |
Family
ID=51770746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410355703.6A Active CN104125504B (en) | 2014-07-24 | 2014-07-24 | Deployment method, device and system based on continuous integration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104125504B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843651B (en) * | 2016-03-31 | 2019-10-11 | 广州华多网络科技有限公司 | A kind of methods, devices and systems of management continuous integrating processing script |
CN106201481A (en) * | 2016-06-30 | 2016-12-07 | 传线网络科技(上海)有限公司 | Assembly management method and apparatus in application development system |
CN106210897B (en) * | 2016-08-09 | 2019-12-10 | 深圳创维数字技术有限公司 | set top box automatic test method based on serial port and system thereof |
CN106681761B (en) * | 2016-12-13 | 2020-12-01 | 深圳市恒扬数据股份有限公司 | Interactive upgrading method and system |
CN107562488B (en) * | 2017-08-22 | 2020-12-29 | 交控科技股份有限公司 | Automatic deployment device and method based on simulation test platform |
CN110830319B (en) * | 2018-08-10 | 2021-07-20 | 长鑫存储技术有限公司 | Management method, device and system for integrated circuit test |
CN112423068A (en) * | 2020-11-18 | 2021-02-26 | 深圳创维-Rgb电子有限公司 | Smart television debugging method and device, mobile terminal and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820447A (en) * | 2010-03-31 | 2010-09-01 | 青岛海信宽带多媒体技术有限公司 | Software upgrading method and upgrading device |
CN101982971A (en) * | 2010-11-01 | 2011-03-02 | 天津三星电子显示器有限公司 | Method for upgrading television based on network |
CN103559126A (en) * | 2013-10-25 | 2014-02-05 | 深圳市欧珀通信软件有限公司 | Method, device and computer terminal for testing software versions |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2362316A1 (en) * | 2010-02-22 | 2011-08-31 | EchoStar Global B.V. | Monitoring and controlling the operation of devices in a distributed network of broadcast devices |
-
2014
- 2014-07-24 CN CN201410355703.6A patent/CN104125504B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820447A (en) * | 2010-03-31 | 2010-09-01 | 青岛海信宽带多媒体技术有限公司 | Software upgrading method and upgrading device |
CN101982971A (en) * | 2010-11-01 | 2011-03-02 | 天津三星电子显示器有限公司 | Method for upgrading television based on network |
CN103559126A (en) * | 2013-10-25 | 2014-02-05 | 深圳市欧珀通信软件有限公司 | Method, device and computer terminal for testing software versions |
Also Published As
Publication number | Publication date |
---|---|
CN104125504A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104125504B (en) | Deployment method, device and system based on continuous integration | |
CN105302716B (en) | Test method, device under the development mode of interflow | |
US9940225B2 (en) | Automated error checking system for a software application and method therefor | |
CN110765026B (en) | Automatic test method, device, storage medium and equipment | |
US8467987B1 (en) | Methods and systems for testing mobile device builds | |
CN110046479B (en) | Link library file anti-debugging method and device based on android operating system | |
US20130305222A1 (en) | Development System | |
CN106547668B (en) | Computer system fault alarming method, apparatus and system | |
US10983887B2 (en) | Validation of multiprocessor hardware component | |
CN107463362A (en) | The method and system of lasting deployment based on multiple Jenkins | |
CN113778898B (en) | User interface automatic test method and device, electronic equipment and storage medium | |
CN106897223A (en) | A kind of software kit delivery method and device based on continuous integrating | |
CN113157508B (en) | Test method, system, device, equipment and storage medium of embedded system | |
CN103136002A (en) | Automatic upgrade control method based on UBoot instruction and system | |
CN109783390A (en) | PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium | |
CN108763056A (en) | A kind of automatic test bullet frame processing method and terminal | |
CN109460359A (en) | A kind of software version test method and system for embedded device | |
CN111858201A (en) | BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium | |
GB2512482A (en) | Verification program, verification method, and verification device | |
CN106445818B (en) | A kind of automatized script adjustment method and device based on model-driven | |
CN110225410A (en) | Prompt the method and device of set-top box exception | |
CN108351790A (en) | Non-monotonic final convergence for expectation state configuration | |
CN109976963A (en) | A kind of method and apparatus that the BMC test macro based on general-purpose platform is realized | |
CN116112412A (en) | Virtual network card binding redundancy function test method, system, device and medium | |
CN105337782A (en) | Method and device for automatic upgrading after boot failure of network equipment firmware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |