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
|
2014-02-13 14:47:51 +01:00
|
|
|
- 5.6
|
2013-12-13 11:49:12 -08:00
|
|
|
- hhvm
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=mysql
|
|
|
|
|
2013-11-22 10:23:00 +01:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
2013-10-29 01:03:53 +01:00
|
|
|
install:
|
2013-10-15 22:44:49 +02:00
|
|
|
- sh -c "if [ '$DB' = 'mariadb' ]; then travis/setup-mariadb.sh; fi"
|
2014-02-04 00:13:36 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/setup-php-extensions.sh; fi"
|
2013-10-29 01:03:53 +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-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-10-29 01:03:53 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- 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"
|
2014-03-24 21:42:06 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3' -a '$DB' = 'mysql' ]; then mysql -e 'SET GLOBAL storage_engine=MyISAM;'; fi"
|
2013-10-29 01:03:53 +01:00
|
|
|
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
2013-10-29 00:44:04 +01:00
|
|
|
|
|
|
|
script:
|
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 ..
|
2013-05-09 19:42:13 +02:00
|
|
|
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
2014-02-21 00:48:18 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
2013-12-13 18:11:49 -08:00
|
|
|
|
|
|
|
matrix:
|
2014-03-10 21:34:55 -05:00
|
|
|
include:
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=mariadb
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=postgres
|
2014-04-16 22:16:52 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|