Commit 737a82ca authored by Aron Novak's avatar Aron Novak

.travis.yml: restore local webserver

parent a2be52da
......@@ -23,10 +23,16 @@ before_script:
- sudo apt-get install -y --force-yes php5-mysql
# Create new site, stubbing sendmail path with true to prevent delivery errors
- mysql -e 'create database drupal'
- mysql -e 'CREATE DATABASE drupal'
- php -d sendmail_path=`which true` ~/.bin/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
# Create webserver for the Simpletest
# Mandatory despite the fact that the tests can be
# executed from CLI!
- drush runserver 127.0.0.1:8080 &
- until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done
# Reference and enable module in build site
- ln -s $(readlink -e $(cd -)) $DRUPAL_ROOT/sites/all/modules/og
- cd $DRUPAL_ROOT
......@@ -35,5 +41,5 @@ before_script:
- drush --yes pm-enable og_ui
script:
- php scripts/run-tests.sh --php $(phpenv which php) --concurrency 2 --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 scripts/run-tests.sh --url http://127.0.0.1:8080 --php $(phpenv which php) --concurrency 2 --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