summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/FeatureContext.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-29 13:56:56 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-29 13:56:56 +0200
commite3a98e4959c36432b1e8250afc03708e10a32cca (patch)
tree352ae2a01152ac107321a2bc6b85525cdff302f9 /build/integration/features/bootstrap/FeatureContext.php
parent2d1f509acf6bab68d4b1f092a0f4b8fc8da5e125 (diff)
downloadnextcloud-server-e3a98e4959c36432b1e8250afc03708e10a32cca.tar.gz
nextcloud-server-e3a98e4959c36432b1e8250afc03708e10a32cca.zip
Support different server ports - defined by EXECUTOR_NUMBER
Diffstat (limited to 'build/integration/features/bootstrap/FeatureContext.php')
-rw-r--r--build/integration/features/bootstrap/FeatureContext.php6
1 files changed, 6 insertions, 0 deletions
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;
+ }
}
/**