Commit 6c5be099 authored by Aron Novak's avatar Aron Novak

.travis.yml: download Drupal 7.x, not 8.x

parent e90cec3c
......@@ -24,15 +24,16 @@ before_script:
# Create new site
- mysql -e 'create database drupal'
- drush --yes core-quick-drupal --profile=testing --no-server --db-url=mysql://root:@127.0.0.1/drupal --enable=simpletest og
- drush --yes core-quick-drupal --core=drupal-7.x --profile=testing --no-server --db-url=mysql://root:@127.0.0.1/drupal --enable=simpletest og
- export DRUPAL_ROOT=og/drupal-7.x
# Reference and enable module in build site
- ln -s $(readlink -e $(cd -)) og/drupal/sites/all/modules/og
- cd og/drupal
- ln -s $(readlink -e $(cd -)) $DRUPAL_ROOT/sites/all/modules/og
- cd $DRUPAL_ROOT
# Enable OG-UI, so drush will auto-download all dependencies
- drush --yes pm-enable og_ui
script:
- php ./og/drupal/scripts/run-tests.sh --concurrency 4 --verbose --color "Organic groups","Organic groups access","Organic groups context","Organic groups field access","Organic groups UI" 2>&1 | tee /tmp/simpletest-result.txt
- php ./$DRUPAL_ROOT/scripts/run-tests.sh --concurrency 4 --verbose --color "Organic groups","Organic groups access","Organic groups context","Organic groups field access","Organic groups UI" 2>&1 | tee /tmp/simpletest-result.txt
- egrep -i "([1-9]+ fail)|(Fatal error)|([1-9]+ exception)" /tmp/simpletest-result.txt && exit 1
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