2012-03-21 22:57:29 +00:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.2
|
2012-05-27 12:30:12 +02:00
|
|
|
- 5.3.3
|
2012-03-21 22:57:29 +00:00
|
|
|
- 5.3
|
|
|
|
- 5.4
|
2013-01-13 23:40:07 +01:00
|
|
|
- 5.5
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
env:
|
2013-10-15 16:28:59 +02:00
|
|
|
- DB=mariadb
|
2012-03-21 22:57:29 +00:00
|
|
|
- DB=mysql
|
|
|
|
- DB=postgres
|
|
|
|
|
|
|
|
before_script:
|
2012-07-18 01:22:24 -05:00
|
|
|
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
|
|
|
|
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
|
2013-10-15 22:44:49 +02:00
|
|
|
- sh -c "if [ '$DB' = 'mariadb' ]; then travis/setup-mariadb.sh; fi"
|
2013-10-15 16:28:59 +02:00
|
|
|
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
2013-05-03 23:16:43 +02:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then pear install --force phpunit/DbUnit; phpenv rehash; fi"
|
2012-07-16 18:07:20 +01:00
|
|
|
- cd phpBB
|
2013-05-27 23:48:04 +02:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then php ../composer.phar install --dev --no-interaction --prefer-source; fi"
|
2012-07-16 18:07:20 +01:00
|
|
|
- cd ..
|
2013-01-23 00:26:38 +01:00
|
|
|
- sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
script:
|
2013-05-03 23:16:43 +02:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then phpunit --configuration travis/phpunit-$DB-travis.xml; else phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml; fi"
|
|
|
|
|
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
|