2014-05-02 16:37:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2014-05-27 20:18:06 +02:00
|
|
|
# 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.
|
2014-05-02 16:37:00 +02:00
|
|
|
#
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
DB=$1
|
|
|
|
TRAVIS_PHP_VERSION=$2
|
2015-09-28 17:40:24 +02:00
|
|
|
NOTESTS=$3
|
2014-05-02 16:37:00 +02:00
|
|
|
|
2015-09-28 17:40:24 +02:00
|
|
|
if [ "$NOTESTS" == '1' ]
|
2014-05-27 20:38:20 +02:00
|
|
|
then
|
|
|
|
travis/setup-exiftool.sh
|
2014-08-09 15:06:34 +02:00
|
|
|
travis/setup-unbuffer.sh
|
2014-05-27 20:38:20 +02:00
|
|
|
fi
|
|
|
|
|
2014-05-02 16:37:00 +02:00
|
|
|
if [ "$DB" == "mariadb" ]
|
|
|
|
then
|
|
|
|
travis/setup-mariadb.sh
|
|
|
|
fi
|
|
|
|
|
2018-01-06 00:09:02 +01:00
|
|
|
if [ "$NOTESTS" != '1' ]
|
2014-05-02 16:37:00 +02:00
|
|
|
then
|
2014-05-03 01:18:55 +02:00
|
|
|
travis/setup-php-extensions.sh
|
2014-05-02 16:37:00 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-28 17:40:24 +02:00
|
|
|
if [ "$NOTESTS" != '1' ]
|
2014-05-02 16:37:00 +02:00
|
|
|
then
|
|
|
|
travis/setup-webserver.sh
|
2014-09-21 13:25:32 +05:30
|
|
|
fi
|
|
|
|
|
2014-05-02 16:37:00 +02:00
|
|
|
cd phpBB
|
2016-03-11 17:51:02 +01:00
|
|
|
php ../composer.phar install --dev --no-interaction
|
2014-05-02 16:37:00 +02:00
|
|
|
cd ..
|