mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 11:28:33 +01:00
34 lines
715 B
Bash
34 lines
715 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# This file is part of the phpBB Forum Software package.
|
||
|
#
|
||
|
# @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||
|
# @license GNU General Public License, version 2 (GPL-2.0)
|
||
|
#
|
||
|
# For full copyright and license information, please see
|
||
|
# the docs/CREDITS.txt file.
|
||
|
#
|
||
|
set -e
|
||
|
|
||
|
DB=$1
|
||
|
TRAVIS_PHP_VERSION=$2
|
||
|
|
||
|
if [ "$TRAVIS_PHP_VERSION" == "5.3.3" -a "$DB" == "mysqli" ]
|
||
|
then
|
||
|
# Workarounds for
|
||
|
# https://github.com/fabpot/Sami/issues/116
|
||
|
# and
|
||
|
# https://github.com/fabpot/Sami/issues/117
|
||
|
errors=$(
|
||
|
unbuffer phpBB/vendor/bin/sami.php parse travis/sami.conf.php -v | \
|
||
|
sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | \
|
||
|
grep "ERROR: " | \
|
||
|
tee /dev/tty | \
|
||
|
wc -l
|
||
|
)
|
||
|
if [ "$errors" != "0" ]
|
||
|
then
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|