Commit 8f65ecf9 authored by webflo's avatar webflo

Configure composer before requiring drupal-ti

parent d66999b7
......@@ -23,13 +23,10 @@ cd "$DRUPAL_TI_DRUPAL_DIR"
# Ensure the module is linked into the codebase.
drupal_ti_ensure_module_linked
# Add the oauth token to prevent GitHub timeouts.
composer config github-oauth.github.com "$GITHUB_OAUTH_TOKEN"
# Initialize composer_manager.
php modules/composer_manager/scripts/init.php
composer drupal-rebuild
composer update --prefer-source -n --verbose
composer update -n --verbose
# Enable main module and submodules.
drush en -y commerce commerce_product commerce_order
......@@ -28,7 +28,6 @@ matrix:
env:
global:
- secure: "BBSL3eNj4tEpeMYl4p7qMBE7NtEYUWqFCZFKBbq3/FUrRUP7CoAuEf2QmsDxVMLvxExGBEf1sGTvdDodEZB6d2egY/x5a9nrXPxHkqBWPDeiFJ1JFmhhdHvvp0SoJ3jFXZAiNCg3M4koxeuYwgu0WE9Vz61e5iHxCtnT70ubQJE="
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- PATH="$PATH:$HOME/.composer/vendor/bin"
......@@ -102,6 +101,8 @@ mysql:
before_install:
- composer self-update
# Add the oauth token to prevent GitHub timeouts.
- git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
- composer global require "lionsad/drupal_ti:dev-master"
- drupal-ti before_install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment