2012-03-21 22:57:29 +00:00
|
|
|
language: php
|
|
|
|
php:
|
2012-03-22 14:56:55 +00:00
|
|
|
- 5.3.2
|
2012-03-21 22:57:29 +00:00
|
|
|
- 5.4
|
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=mysql
|
|
|
|
- DB=postgres
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
|
|
|
|
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
|
|
|
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then pear install --force phpunit/DbUnit; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3' ]; then pyrus install --force phpunit/DbUnit; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.4' ]; then pyrus install --force phpunit/DbUnit; fi"
|
|
|
|
- phpenv rehash
|
|
|
|
|
|
|
|
script:
|
2012-03-22 14:13:25 +00:00
|
|
|
- phpunit --configuration travis/phpunit-$DB-travis.xml
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2012-03-21 23:25:50 +00:00
|
|
|
- dev-team@phpbb.com
|
2012-03-22 13:32:58 +00:00
|
|
|
on_success: change
|
2012-03-21 23:25:50 +00:00
|
|
|
on_failure: change
|