File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,18 @@ before_script:
5050 export SIMPLETEST_DB="sqlite://localhost/sites/default/files/.ht.sqlite#drupalconsole"
5151 fi
5252
53- # Get Drupal via git, and install it via Composer. Then, require
54- # latest drupal/console at its master branch via Composer.
55- - git clone --depth=50 --branch=$DRUPAL_BRANCH http://git.drupal.org/project/drupal.git $DRUPAL_PATH
53+ # Get Drupal via git, and install it via Composer.
54+ - git clone --depth=5 --branch=$DRUPAL_BRANCH http://git.drupal.org/project/drupal.git $DRUPAL_PATH
5655 - cd $DRUPAL_PATH
5756 - composer install --no-progress --no-suggest
58- - composer require "drupal/console:dev-master" --no-progress --no-suggest
5957
60- # Replace vendor/ drupal/console with the one just being built from GitHub.
61- - rm -rf $DRUPAL_PATH/vendor/drupal/console
62- - mkdir -p $DRUPAL_PATH/vendor/drupal/console
63- - cp -r $TRAVIS_BUILD_DIR/* $ DRUPAL_PATH/vendor/drupal/console
64- # Update drupal/console dependencies in case they have been changed in the
65- # current build.
66- - composer update drupal/console
58+ # Require drupal/console from the source just cloned from GitHub.
59+ - cd $TRAVIS_BUILD_DIR
60+ - git checkout -b travisci-run-branch
61+ - cd $ DRUPAL_PATH
62+ - |
63+ composer config repositories.travisci-run '{"type": "path", "url": "$TRAVIS_BUILD_DIR", "options": {"symlink": false}}'
64+ - composer require " drupal/console:dev-travisci-run-branch" --no-progress --no-suggest
6765
6866script :
6967 # Install Drupal site via drupal/console and show site status.
You can’t perform that action at this time.
0 commit comments