2012-03-21 22:57:29 +00:00
|
|
|
language: php
|
2019-05-23 19:59:13 +02:00
|
|
|
dist: trusty
|
2012-03-21 22:57:29 +00:00
|
|
|
|
2014-05-26 21:41:55 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.4
|
2015-09-28 17:40:24 +02:00
|
|
|
env: DB=none;NOTESTS=1
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=mysqli # MyISAM
|
2014-05-26 21:41:55 +02:00
|
|
|
- php: 5.4
|
|
|
|
env: DB=mysql
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=mariadb
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=postgres
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=sqlite3
|
2015-01-24 20:10:49 +01:00
|
|
|
- php: 5.4
|
|
|
|
env: DB=mysqli;SLOWTESTS=1
|
2014-05-26 21:41:55 +02:00
|
|
|
- php: 5.5
|
|
|
|
env: DB=mysqli
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=mysqli
|
2015-03-05 11:26:53 +01:00
|
|
|
- php: 7.0
|
|
|
|
env: DB=mysqli
|
2016-08-24 21:03:55 +02:00
|
|
|
- php: 7.1
|
|
|
|
env: DB=mysqli
|
2018-01-01 14:40:59 +01:00
|
|
|
- php: 7.2
|
|
|
|
env: DB=mysqli
|
2016-08-05 20:35:15 +02:00
|
|
|
- php: nightly
|
|
|
|
env: DB=mysqli
|
2014-05-26 21:41:55 +02:00
|
|
|
allow_failures:
|
2016-08-05 20:35:15 +02:00
|
|
|
- php: nightly
|
2014-05-26 21:41:55 +02:00
|
|
|
fast_finish: true
|
2012-03-21 22:57:29 +00:00
|
|
|
|
2013-11-22 10:23:00 +01:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
2013-10-29 01:03:53 +01:00
|
|
|
install:
|
2015-09-28 17:40:24 +02:00
|
|
|
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
2013-10-29 01:03:53 +01:00
|
|
|
|
|
|
|
before_script:
|
2015-09-28 17:40:24 +02:00
|
|
|
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
2014-08-10 13:35:49 +02:00
|
|
|
- phantomjs --webdriver=8910 > /dev/null &
|
2013-10-29 00:44:04 +01:00
|
|
|
|
|
|
|
script:
|
2015-09-28 17:40:24 +02:00
|
|
|
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
|
|
|
- travis/check-sami-parse-errors.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
|
|
|
- travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
|
|
|
- travis/check-executable-files.sh $DB $TRAVIS_PHP_VERSION $NOTESTS ./
|
2015-05-03 12:58:30 +02:00
|
|
|
- sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/lint_test.php; fi"
|
2017-05-21 16:14:11 +02:00
|
|
|
- sh -c "if [ '$NOTESTS' != '1' -a '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --verbose --stop-on-error; fi"
|
2015-01-24 20:10:49 +01:00
|
|
|
- sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi"
|
2017-12-08 23:49:49 +01:00
|
|
|
- sh -c "set -x;if [ '$NOTESTS' = '1' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git remote set-branches --add origin $TRAVIS_BRANCH && git fetch && git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..$TRAVIS_PULL_REQUEST_SHA; fi"
|