Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kerryjones's avatar

Codeship and HTTP Tests

I've been doing some work to setup Codeship > Envoyer deploy which is now working. The part I'm struggling with is just the basic HTTP Test:

$response = $this->get('/');
$response->assertStatus(200);

Codeship doesn't have a natively running PHP Server. So, they give you a way to set one up: https://documentation.codeship.com/basic/languages-frameworks/php/#running-your-php-server

However, it lives on 127.0.0.1:8000. I have Homestead setup on a custom URL.

I want to be able to run PHPUnit tests locally before pushing them, and setting up code that varies based on CodeShip vs local sounds like extra work.

Does anyone have suggestions or ways around this?

0 likes
1 reply
adiachenko's avatar

I haven't worked with Codeship, but normally this kind of challenges in CI are solved with the help of Docker (which Codeship has behind the paywall, it seems). I doubt you'll be able to juggle with actual web server otherwise on any CI platform, pretty much all of them are built with containers in mind.

So unless you want to dig into Docker right now, you have to deal with it (builtin php server, I mean).

Please or to participate in this conversation.