A
A
andymitrich2013-10-25 12:46:37
PHP
andymitrich, 2013-10-25 12:46:37

Phing Strategy

Good day, colleagues. I'm trying to use phing to automate tedious actions - the question arose of how and what to do.

There are two folders associated with the project: development is underway in one and git is deployed there, the other is a test before uploading to production, svn is deployed there. Why everything is this way - do not ask, it is long and tedious to explain, we work with what we have.

Now the sequence of actions is as follows:
1. We take the code from the git repository.
2. Handles copy the files to the test folder.
3. Commit to svn.
4. Update the server through the script.

I would like to introduce the process of compressing and combining js and css here. Plus, decide which of the operations to continue to perform manually, which ones to try to automate using phing.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Arakelyan, 2013-10-25
@andymitrich

With phing you can do all these things. As a last resort, you can create an operation template and then manipulate its parameters via -Dvarname=value directives. Regarding your current tasks:
1. Of course, you can take the code with phing (for example, it will do git pull ), but it's better to give it to jenkins or another CI. Since you will have at least one copy by handles, that is, the first.
2. It is better to stop copying with pens. Perfectly automated by phing
3. Commit is automated
4. Update can also be done from phing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question