protected function getCapabilitiesNode()
 {
     $node = parent::getCapabilitiesNode();
     $node->children()->scalarNode('platform')->defaultValue('Linux')->end()->scalarNode('selenium-version')->end()->scalarNode('max-duration')->end()->scalarNode('command-timeout')->end()->scalarNode('idle-timeout')->end()->scalarNode('build')->info('will be set automatically based on the TRAVIS_BUILD_NUMBER environment variable if available')->end()->arrayNode('custom-data')->useAttributeAsKey('')->prototype('variable')->end()->end()->scalarNode('screen-resolution')->end()->scalarNode('tunnel-identifier')->info('will be set automatically based on the TRAVIS_JOB_NUMBER environment variable if available')->end()->arrayNode('prerun')->children()->scalarNode('executable')->isRequired()->end()->arrayNode('args')->prototype('scalar')->end()->end()->booleanNode('background')->defaultFalse()->end()->end()->end()->booleanNode('record-video')->end()->booleanNode('record-screenshots')->end()->booleanNode('capture-html')->end()->booleanNode('disable-popup-handler')->end()->end()->validate()->ifTrue(function ($v) {
         return empty($v['custom-data']);
     })->then(function ($v) {
         unset($v['custom-data']);
         return $v;
     })->end();
     return $node;
 }
Exemplo n.º 2
0
 protected function getCapabilitiesNode()
 {
     $node = parent::getCapabilitiesNode();
     $node->children()->scalarNode('project')->end()->scalarNode('resolution')->end()->scalarNode('build')->info('will be set automatically based on the TRAVIS_JOB_NUMBER environment variable if available')->end()->scalarNode('os')->end()->scalarNode('os_version')->end()->scalarNode('device')->end()->booleanNode('browserstack-debug')->end()->booleanNode('browserstack-tunnel')->end()->booleanNode('emulator')->end()->end();
     return $node;
 }