Commit 57e48fbf authored by jbekker's avatar jbekker

Support for travis

parent 35da88ae
language: php
- 5.4
- 5.5
database: drupal
username: root
encoding: utf8
- "mysql -e 'create database drupal;'"
# Install latest Drush 7.
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require --no-interaction --prefer-source drush/drush:dev-master
# Disable sendmail.
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# Build Codebase.
- TESTDIR=$(pwd)
- cd ..
- git clone --branch 8.0.x drupal
- git clone --branch 8.x-1.x drupal/modules/devel
- git clone --branch 8.x-1.x drupal/modules/composer_manager
- cd drupal
# Apply core patch untill gets merged.
- wget
- git apply -v -p1 < 2189345-runtests-exitcode_16.patch
- ln -s $TESTDIR modules/commerce
- drush si --db-url=mysql://root:@ --account-name=admin --account-pass=admin --site-name="Commerce" --yes
- drush pm-enable devel composer_manager simpletest commerce commerce_product commerce_order --yes
- drush pm-uninstall dblog --yes
- drush runserver 8888 > /dev/null &
- until netstat -an 2>/dev/null | grep '8888.*LISTEN'; do true; done
- php ./core/scripts/ --php `which php` --concurrency 12 --url --verbose --color commerce
- ./core/vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/commerce
Drupal Commerce
[![Build Status](](
Drupal Commerce is an open source eCommerce framework that is designed to
enable flexible eCommerce for websites and applications based on Drupal.
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