Skip to content
Permalink
Browse files

[TravisCI] Create a local mirror Composer repository to load drupal/c…

…onsole from the git clone (#4137)

* Update services.yml

* PHP 5.5.9 runs on Trusty, add PHP 7.4, drop HHVM

* 1

* 2

* 1

* 2

* 3

* 4

* 5

* 6

* 7

* 8

* 9

* 9

* 10

* 11

* 12

* 12

* 13

* 13

* 15

* 16

* 17

* 18

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update autoload.local.php.dist

* Create a local mirror Composer repository to load drupal/console from the git clone
  • Loading branch information...
mondrake authored and enzolutions committed Aug 21, 2019
1 parent a4ce15b commit b34af90e23cdde20f0e376392efe92f737cade85
Showing with 9 additions and 11 deletions.
  1. +9 −11 .travis.yml
@@ -50,20 +50,18 @@ before_script:
export SIMPLETEST_DB="sqlite://localhost/sites/default/files/.ht.sqlite#drupalconsole"
fi
# Get Drupal via git, and install it via Composer. Then, require
# latest drupal/console at its master branch via Composer.
- git clone --depth=50 --branch=$DRUPAL_BRANCH http://git.drupal.org/project/drupal.git $DRUPAL_PATH
# Get Drupal via git, and install it via Composer.
- git clone --depth=5 --branch=$DRUPAL_BRANCH http://git.drupal.org/project/drupal.git $DRUPAL_PATH
- cd $DRUPAL_PATH
- composer install --no-progress --no-suggest
- composer require "drupal/console:dev-master" --no-progress --no-suggest

# Replace vendor/drupal/console with the one just being built from GitHub.
- rm -rf $DRUPAL_PATH/vendor/drupal/console
- mkdir -p $DRUPAL_PATH/vendor/drupal/console
- cp -r $TRAVIS_BUILD_DIR/* $DRUPAL_PATH/vendor/drupal/console
# Update drupal/console dependencies in case they have been changed in the
# current build.
- composer update drupal/console
# Require drupal/console from the source just cloned from GitHub.
- cd $TRAVIS_BUILD_DIR
- git checkout -b travisci-run-branch
- cd $DRUPAL_PATH
- |
composer config repositories.travisci-run '{"type": "path", "url": "$TRAVIS_BUILD_DIR", "options": {"symlink": false}}'
- composer require "drupal/console:dev-travisci-run-branch" --no-progress --no-suggest

script:
# Install Drupal site via drupal/console and show site status.

0 comments on commit b34af90

Please sign in to comment.
You can’t perform that action at this time.