From 34cd387bcaca859e899f75b172e0bffc96b7967a Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Tue, 22 Apr 2014 14:26:19 +0000 Subject: [PATCH] Try to expose Composer's autoloading. --- tests/scripts/travis_setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/travis_setup.sh b/tests/scripts/travis_setup.sh index 264085d1..c619b2e9 100755 --- a/tests/scripts/travis_setup.sh +++ b/tests/scripts/travis_setup.sh @@ -35,6 +35,8 @@ phpenv rehash drush dl --yes drupal cd drupal-* drush si minimal --db-url=mysql://drupal:drupal@localhost/drupal --yes +# Needs to make things from Composer be available (PHP CS, primarily) +echo "include_once $HOME/.composer/vendor/autoload.php;" >> sites/default/settings.php drush runserver --php-cgi=$HOME/.phpenv/shims/php-cgi localhost:8081 &>/dev/null & ln -s $ISLANDORA_DIR sites/all/modules/islandora mv sites/all/modules/islandora/tests/travis.test_config.ini sites/all/modules/islandora/tests/test_config.ini