Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuCh3n committed Jul 10, 2023
1 parent a846a31 commit 4f03302
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,26 @@ public function buildDriver(array $config)
));
}

dd($config);

$desiredCapabilities = array(
$args = array(
'capabilities' => $config['capabilities'],
'tags' => array(php_uname('n'), 'PHP '.phpversion())
);

if (getenv('TRAVIS_JOB_NUMBER')) {
$desiredCapabilities['tunnel-identifier'] = getenv('TRAVIS_JOB_NUMBER');
$desiredCapabilities['build'] = getenv('TRAVIS_BUILD_NUMBER');
$desiredCapabilities['tags'] = array('Travis-CI', 'PHP '.phpversion());
$args['tunnel-identifier'] = getenv('TRAVIS_JOB_NUMBER');
$args['build'] = getenv('TRAVIS_BUILD_NUMBER');
$args['tags'] = array('Travis-CI', 'PHP '.phpversion());
}

if (getenv('JENKINS_HOME')) {
$desiredCapabilities['tunnel-identifier'] = getenv('JOB_NAME');
$desiredCapabilities['build'] = getenv('BUILD_NUMBER');
$desiredCapabilities['tags'] = array('Jenkins', 'PHP '.phpversion(), getenv('BUILD_TAG'));
$args['tunnel-identifier'] = getenv('JOB_NAME');
$args['build'] = getenv('BUILD_NUMBER');
$args['tags'] = array('Jenkins', 'PHP '.phpversion(), getenv('BUILD_TAG'));
}
dd($config['capabilities']);

return new Definition('Behat\Mink\Driver\Selenium4Driver', array(
$config['browser'],
$desiredCapabilities,
$args,
$config['wd_host'],
));
}
Expand Down

0 comments on commit 4f03302

Please sign in to comment.