How to run a configuration before another one

Hi everybody !

I would like to run a configuration before another but I can't find how to do it. I searched in configuration editors, I found how to run a specific third-party program but not another configuration.

I've made a lot of configurations for my project. Some are build scripts, some are unit tests runners and others are functionnal tests runners. I've made it independent cause some must be and have to called by hand on servers to push in production. And some others must not be run in (pre)production, like unit tests.

How to run a configuration before another please ? Without making another one configuration wich do all of the others

Thank you !

3 comments

Hi there,

You cannot -- there is no such functionality implemented in PhpStorm AFAIK.

Try this plugin -- maybe it will do what you need: http://plugins.jetbrains.com/plugin/7248?pr=phpStorm


P.S.
In IntelliJ IDEA, there is a "Run Another Configuration" as one of the options under "Before Launch" -- but it is not present in PhpStorm (sorry, no idea what plugin/module provides it and why it is not in PhpStorm -- possibly it's Java specific)


P.P.S.
I do not know exactly what you are doing there, but purelly from your description .. maybe you are using a bit wrong functionality for your needs? Maybe Phing targets would be more appropriate for build scripts and alike?

0

Hello Andriy !

We are near to my whishes, thanks ! But it's nto waht I would like. Multi-run is really great. But it runs all configurations simultaneously. I would like t run them one by one. When A is finish, I would like to run B. Not just I run A and during its execution, I run B (multi-run style).

What I wanna do is to build my static scripts (JS in this case) and after, run the units tests. Multi-run will run the build and just after the launch, will run the tests. So tests always says to me that there is some bugs, cause build is not finish...

Maybe you are true for Thing.

Thank you for your help !

PS : sorry for my terrible english :s

0
What I wanna do is to build my static scripts (JS in this case) and after, run the units tests. Multi-run will run the build and just after the launch, will run the tests. So tests always says to me that there is some bugs, cause build is not finish...

If you are using PhpStorm, then Phing integration will be useful here: Create a Phing target that will do such "build my static scripts" job for you. Once you have told PhpStorm about your Phing build file, you can use "Run Phing Target" in "Before launch" section of Run/Debug Configuration.

I'm using similar approach (phing target cleans temp/work files before executing PHPUnit tests) -- it works great for me.

0

Please sign in to leave a comment.