Skip to content

Commit

Permalink
Cleanup Behat test exec.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Apr 10, 2017
1 parent 514b302 commit d2da7d2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions bin/blt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if (!isset($autoload)) {
}

$robo_commands = [
'tests:configure-phantomjs',
'tests:all',
'tests:behat',
'tests:phpunit',
Expand Down
2 changes: 0 additions & 2 deletions phing/tasks/ci.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

<target name="ci:pipelines:init" description="Initializes default Acquia Pipelines configuration for this project.">
<copy file="${blt.root}/scripts/pipelines/acquia-pipelines.yml" tofile="${repo.root}/acquia-pipelines.yml"/>
<echo>Acquia Pipelines requires PhantomJS in order to run Javascript Behat tests.</echo>
<exec dir="${repo.root}" command="blt setup:phantomjs" passthru="true"/>
</target>

<target name="ci:travis:init" description="Initializes default Travis CI configuration for this project.">
Expand Down
2 changes: 1 addition & 1 deletion scripts/blt/ci/internal/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yaml-cli update:value blt/project.yml project.local.hostname '127.0.0.1:8888'
yaml-cli update:value blt/project.yml cm.strategy none
blt validate:all
blt ci:setup -Dcreate_alias=false
blt tests:all --define behat.run-server=true
blt tests:all --define behat.run-server=true --yes
drush config-export --root=docroot -y

# Test core-only config management.
Expand Down
2 changes: 1 addition & 1 deletion scripts/pipelines/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ sudo /etc/init.d/mysql start

blt validate:all
blt ci:setup -Dcreate_alias=false
blt tests:all -D behat.run-server=true -D behat.launch-selenium=false -D behat.launch-phantomjs=true -D behat.tags='~experimental'
blt tests:all -D behat.run-server=true -D behat.launch-selenium=false -D behat.launch-phantomjs=true -D behat.tags='~experimental' --yes

set +v
2 changes: 1 addition & 1 deletion src/Robo/Commands/Tests/BehatCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function killPhantomJs() {
*
* Sometimes the download fails during `composer install`.
*
* @command setup:phantomjs
* @command tests:configure-phantomjs
*
* @validatePhantomJsIsConfigured
*/
Expand Down

0 comments on commit d2da7d2

Please sign in to comment.