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:
50
50
export SIMPLETEST_DB="sqlite://localhost/sites/default/files/.ht.sqlite#drupalconsole"
51
51
fi
52
52
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
56
55
- cd $DRUPAL_PATH
57
56
- composer install --no-progress --no-suggest
58
- - composer require "drupal/console:dev-master" --no-progress --no-suggest
59
57
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
67
65
68
66
script :
69
67
# Install Drupal site via drupal/console and show site status.
You can’t perform that action at this time.
0 commit comments