The flow that I am thinking is that
- Check out source code
- Install dependencies - bower
- Run the server in the agent (mvn tomcut:run)
- Run the Selenium test
- Turn off the server
But looking at the mvn tomcut:run, the CI will not stop as it feels like it runs the server on it self and we cannot proceed with the step 4.
What's the best practice here?