From e3a98e4959c36432b1e8250afc03708e10a32cca Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 29 Sep 2015 13:56:56 +0200 Subject: Support different server ports - defined by EXECUTOR_NUMBER --- build/integration/features/bootstrap/FeatureContext.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build/integration/features/bootstrap/FeatureContext.php') diff --git a/build/integration/features/bootstrap/FeatureContext.php b/build/integration/features/bootstrap/FeatureContext.php index 527e0c9ba08..b7a04e1ca76 100644 --- a/build/integration/features/bootstrap/FeatureContext.php +++ b/build/integration/features/bootstrap/FeatureContext.php @@ -34,6 +34,12 @@ class FeatureContext extends BehatContext { // Initialize your context here $this->baseUrl = $parameters['baseUrl']; $this->adminUser = $parameters['admin']; + + // in case of ci deployment we take the server url from the environment + $testServerUrl = getenv('TEST_SERVER_URL'); + if ($testServerUrl !== false) { + $this->baseUrl = $testServerUrl; + } } /** -- cgit v1.2.3