2012-03-21 22:57:29 +00:00
|
|
|
language: php
|
|
|
|
php:
|
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-01-23 01:39:39 +01:00
|
|
|
- travis/install-php-extensions.sh
|
2012-03-31 09:27:15 +01:00
|
|
|
- cd phpBB
|
2013-05-28 01:15:54 +02:00
|
|
|
- php ../composer.phar install --dev --no-interaction --prefer-source
|
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"
|
2013-10-27 17:39:39 +01:00
|
|
|
- cd build
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi"
|
|
|
|
- cd ..
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
script:
|
2013-05-09 19:42:13 +02:00
|
|
|
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
2013-05-03 23:16:43 +02:00
|
|
|
|
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
|