aboutsummaryrefslogtreecommitdiffstats
path: root/travis/prepare-extension.sh
blob: 4518f935f8a4454caa160b30a68f6f2845609952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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
set -x

EXTNAME=$1
BRANCH=$2

# Move the extension in place
mkdir --parents phpBB/ext/$EXTNAME
cp -R ../tmp/* phpBB/ext/$EXTNAME

# Move the extensions travis/phpunit-*-travis.xml files in place
cp -R travis/* phpBB/ext/$EXTNAME/travis