forked from phpbb/phpbb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ticket/12941] Check for Sami parse errors on Travis CI.
PHPBB3-12941
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# | ||
# 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 | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y expect-dev |