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
|
2014-02-13 14:47:51 +01:00
|
|
|
- 5.6
|
2014-03-29 12:08:52 +01:00
|
|
|
- hhvm
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=mysql
|
|
|
|
|
|
|
|
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"
|
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-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"
|
2015-01-20 18:54:23 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then travis/install-phpunit-5-2.sh; 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"
|
2014-08-07 13:16:01 +02:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' ]; then sudo apt-get update; sudo apt-get install -y parallel libimage-exiftool-perl; fi"
|
2012-03-21 22:57:29 +00:00
|
|
|
|
|
|
|
script:
|
2015-01-20 18:54:23 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then php -d include_path='.:phpunit' phpunit/phpunit.php --configuration travis/phpunit-$DB-5-2-travis.xml; else phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml; fi"
|
2014-08-07 13:16:01 +02:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' ]; then find . -type f -not -path './phpBB/vendor/*' -iregex '.*\.\(gif\|jpg\|jpeg\|png\)$' | parallel --gnu --keep-order 'phpBB/develop/strip_icc_profiles.sh {}' || exit 1; fi"
|
2014-03-10 21:34:55 -05:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
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
|
2014-05-02 17:59:22 +02:00
|
|
|
fast_finish: true
|