Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to specify Composer version of the module #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ env:
# Configuration variables.
- DRUPAL_TI_MODULE_NAME="[[[FILL THIS OUT]]]"
- DRUPAL_TI_SIMPLETEST_GROUP="[[[FILL THIS OUT]]]"
# This Composer version of the module is going to be used for testing.
# If you don't specify the version here, *@dev is going to be used.
# For more information read: https://www.drupal.org/node/2718229
#- DRUPAL_TI_MODULE_COMPOSER_VERSION="[[[FILL THIS OUT]]]"

# Define runners and environment vars to include before and after the
# main runners / environment vars.
Expand Down
7 changes: 6 additions & 1 deletion environments/drupal-8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ function drupal_ti_ensure_module_linked() {
# the local repository must be the first in the list.
composer config repositories.0 path $TRAVIS_BUILD_DIR
composer config repositories.1 composer https://packages.drupal.org/8
composer require drupal/$DRUPAL_TI_MODULE_NAME *@dev
if [ -z "$DRUPAL_TI_MODULE_COMPOSER_VERSION" ]
then
composer require "drupal/$DRUPAL_TI_MODULE_NAME" *@dev
else
composer require "drupal/$DRUPAL_TI_MODULE_NAME" "$DRUPAL_TI_MODULE_COMPOSER_VERSION"
fi
}

export DRUPAL_TI_DRUSH_VERSION="drush/drush:8.0.*"
Expand Down