mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 22:28:46 +01:00
bc93feba66
PHPBB3-15295
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
language: php
|
|
sudo: required
|
|
dist: precise
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.6
|
|
env: DB=none;NOTESTS=1
|
|
- php: 5.6
|
|
env: DB=mariadb
|
|
- php: 5.6
|
|
env: DB=postgres
|
|
- php: 5.6
|
|
env: DB=sqlite3
|
|
- php: 5.6
|
|
env: DB=mysqli;SLOWTESTS=1
|
|
- php: 5.6
|
|
env: DB=mysqli # MyISAM
|
|
- php: 5.6
|
|
env: DB=mysql
|
|
- php: 7.0
|
|
env: DB=mysqli
|
|
- php: 7.1
|
|
env: DB=mysqli
|
|
- php: 7.2
|
|
env: DB=mysqli
|
|
- php: nightly
|
|
env: DB=mysqli
|
|
- php: hhvm
|
|
env: DB=mysqli
|
|
allow_failures:
|
|
- php: nightly
|
|
- php: hhvm
|
|
fast_finish: true
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- node
|
|
|
|
services:
|
|
- redis-server
|
|
|
|
install:
|
|
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
|
|
|
before_script:
|
|
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
|
|
- phantomjs --webdriver=8910 > /dev/null &
|
|
|
|
script:
|
|
- 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 ./
|
|
- travis/check-stylesheet.sh $NOTESTS
|
|
- sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/lint_test.php; fi"
|
|
- sh -c "if [ '$NOTESTS' != '1' -a '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --verbose --stop-on-error; fi"
|
|
- sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi"
|
|
- sh -c "set -x;if [ '$NOTESTS' = '1' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|