You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In drupal-7.sh and drupal-8.sh there is a command which run drush in the following way:
~/.composer/vendor/bin/drush.php
so I've the following error:
php -d sendmail_path=/bin/true /home/travis/.composer/vendor/bin/drush.php --yes site-install testing --db-url=mysql://root:@127.0.0.1/drupal
Could not open input file: /home/travis/.composer/vendor/bin/drush.php
Since I'd like to have my drush available globally as I'm using drupal_ti on top of my other CI tests, I've specified the following environment variable: COMPOSER_BIN_DIR=~/bin which automatically link drush binary into ~/bin which is available by default in Travis CI by just running drush (so I don't need to modify my PATH). This way is also described in drush docs.
So I wondering if there is a better way of running drush. It seems this syntax is only used in order to handle mails (php -d sendmail_path=$(which true)).
In my .travis.yml, my approach is a bit different (by installing mailcatcher, so there can be some tests related to received e-mails):
In this case, we can install site in normal way, which is: drush --yes site-install, so we're not depending on any hardcoded paths and mails are handled by catchmail.
The text was updated successfully, but these errors were encountered:
I think so, in case when COMPOSER_BIN_DIR is defined, running without sudo ~/bin value could be more preferred, with sudo, the /usr/local/bin work better in this case, so it's better to have some more flexible way of finding drush.
As drupal_ti takes care of installing drush and there is no harm in doing so, I think checking COMPOSER_BIN_DIR is enough. It is an edge-case anyway - as hhvm has trouble with the php.ini.
In
drupal-7.sh
anddrupal-8.sh
there is a command which run drush in the following way:so I've the following error:
Since I'd like to have my
drush
available globally as I'm usingdrupal_ti
on top of my other CI tests, I've specified the following environment variable:COMPOSER_BIN_DIR=~/bin
which automatically linkdrush
binary into~/bin
which is available by default in Travis CI by just runningdrush
(so I don't need to modify myPATH
). This way is also described indrush
docs.So I wondering if there is a better way of running
drush
. It seems this syntax is only used in order to handle mails (php -d sendmail_path=$(which true)
).In my
.travis.yml
, my approach is a bit different (by installingmailcatcher
, so there can be some tests related to received e-mails):In this case, we can install site in normal way, which is:
drush --yes site-install
, so we're not depending on any hardcoded paths and mails are handled bycatchmail
.The text was updated successfully, but these errors were encountered: