Skip to content

Instantly share code, notes, and snippets.

@rajeshtaneja
Created February 27, 2015 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshtaneja/52e62002f0ccf068524a to your computer and use it in GitHub Desktop.
Save rajeshtaneja/52e62002f0ccf068524a to your computer and use it in GitHub Desktop.
travis.yml
notifications:
email:
recipients:
- rajesh@moodle.com
on_success: never
on_failure: always
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
language: php
php:
- "5.4"
env:
global:
- GITHUBTOKEN=b19122cc44344bcb9ac5a2efc64efb323f901767 NUMBEROFPARALLELRUNS=16 MAXPARALLELINSTALL=4 MAXDB=4 dbtype='pgsql' dbhost='localhost' dbname='moodle' dbuser='postgres' wwwroot='http://moodle.travis/moodle' dataroot='home/travis/moodledata' behat_wwwroot='http://localhost:8000' behat_dataroot='/home/travis/moodledata_behat' behat_prefix='bht_'
- CI_NODE_TOTAL=4
matrix:
- CI_NODE_INDEX=0
- CI_NODE_INDEX=1
- CI_NODE_INDEX=2
- CI_NODE_INDEX=3
before_script:
# Copy config-dist and modify values.
- cp config-dist.php config.php
- sed -i s/\'pgsql\'/\'$dbtype\'/ config.php
- sed -i s/\'localhost\'/\'$dbhost\'/ config.php
- sed -i s/\'moodle\'/\'$dbname\'/ config.php
- sed -i s/\'username\'/\'$dbuser\'/ config.php
- sed -i s/\'password\'/\'$dbpass\'/ config.php
- sed -i s%\'http://example.com/moodle\'%\'$wwwroot\'% config.php
- sed -i s%\'/home/example/moodledata\'%\'$dataroot\'% config.php
- sed -i s/require.*setup.php.*// config.php
- echo "\$CFG->behat_wwwroot = '$behat_wwwroot';" >> config.php
- echo "\$CFG->behat_dataroot = '$behat_dataroot';" >> config.php
- echo "\$CFG->behat_prefix = '$behat_prefix';" >> config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment