Merge branch '2.1.x'
This commit is contained in:
27
build.xml
27
build.xml
@@ -53,6 +53,7 @@
|
|||||||
-->
|
-->
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${build-directory}" />
|
<delete dir="${build-directory}" />
|
||||||
|
<mkdir dir="${build-directory}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="composer">
|
<target name="composer">
|
||||||
@@ -62,9 +63,8 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="prepare-tests" depends="clean,composer">
|
<target name="prepare-tests" depends="clean,composer">
|
||||||
<exec command="if [ -d '${build-directory}/../../../../../' ]; then echo 'true'; else echo 'false'; fi;" outputProperty="output.IS_DIRECTORY_EXISTS" />
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${output.IS_DIRECTORY_EXISTS}" arg2="true" />
|
<available property="phpbb-is-available" file="${phpbb-root}/phpBB/vendor/bin/phpunit" type="file" />
|
||||||
<then>
|
<then>
|
||||||
<echo msg="phpBB is already set up." />
|
<echo msg="phpBB is already set up." />
|
||||||
</then>
|
</then>
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<!-- Move Board3 Portal and set up phpBB -->
|
<!-- Move Board3 Portal and set up phpBB -->
|
||||||
<exec command="CURRENT_BUILD_REV=$(git rev-parse --abbrev-ref HEAD)" passthru="true" />
|
<exec command="CURRENT_BUILD_REV=$(git rev-parse --abbrev-ref HEAD)" passthru="true" />
|
||||||
<exec command="echo $GIT_BRANCH" passthru="true" />
|
<exec command="echo $GIT_BRANCH" passthru="true" />
|
||||||
<exec command="git clone https://github.com/phpbb/phpbb.git phpbb" passthru="true" />
|
<exec command="git clone -v --progress https://github.com/phpbb/phpbb.git phpbb" passthru="true" />
|
||||||
<exec dir="${build-directory}/../phpbb/phpBB" command="php ../composer.phar install" passthru="true" />
|
<exec dir="${build-directory}/../phpbb/phpBB" command="php ../composer.phar install" passthru="true" />
|
||||||
<mkdir dir="phpbb/phpBB/ext/board3" />
|
<mkdir dir="phpbb/phpBB/ext/board3" />
|
||||||
<exec dir="${build-directory}/../phpbb/phpBB/ext/board3" command="git clone https://github.com/board3/Board3-Portal.git portal" passthru="true" />
|
<exec dir="${build-directory}/../phpbb/phpBB/ext/board3" command="git clone https://github.com/board3/Board3-Portal.git portal" passthru="true" />
|
||||||
@@ -88,6 +88,27 @@
|
|||||||
<exec dir="${build-directory}/../phpbb" command="chmod 777 phpBB/images/avatars/upload" passthru="true" />
|
<exec dir="${build-directory}/../phpbb" command="chmod 777 phpBB/images/avatars/upload" passthru="true" />
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
<if>
|
||||||
|
<equals arg1="$JENKINS_URL" arg2="" />
|
||||||
|
<then>
|
||||||
|
<echo msg="JENKINS_URL is not set" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<exec dir="${build-directory}/../phpbb/phpBB/ext/board3/portal" command="wget https://phar.phpunit.de/phploc.phar" passthru="true" />
|
||||||
|
<if>
|
||||||
|
<available property="logs-dir-available" file="${build-directory}/logs" type="dir" />
|
||||||
|
<then>
|
||||||
|
<echo msg="Logs dir already set up." />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<mkdir dir="${build-directory}/logs" />
|
||||||
|
<exec dir="${build-directory}/logs" command="touch phploc.csv" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
<exec dir="${build-directory}/../phpbb/phpBB/ext/board3" command="php portal/phploc.phar --exclude=portal/vendor,portal/language,portal/styles,portal/tests,portal/travis --log-csv ../../../../build/logs/phploc.csv --progress portal/" passthru="true" />
|
||||||
|
<exec dir="${build-directory}/../phpbb/phpBB/ext/board3/portal" command="rm phploc.phar" passthru="true" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test" depends="clean,composer,prepare-tests">
|
<target name="test" depends="clean,composer,prepare-tests">
|
||||||
|
|||||||
10
composer.lock
generated
10
composer.lock
generated
@@ -1,22 +1,22 @@
|
|||||||
{
|
{
|
||||||
"_readme": [
|
"_readme": [
|
||||||
"This file locks the dependencies of your project to a known state",
|
"This file locks the dependencies of your project to a known state",
|
||||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "b5a11feb74a85a9825b7b83aaaf8fa0e",
|
"hash": "c994b2b8ddc0cceee41f2d5c294b6677",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "nickvergessen/phpbb-tool-trimmessage",
|
"name": "nickvergessen/phpbb-tool-trimmessage",
|
||||||
"version": "1.3.1",
|
"version": "1.3.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nickvergessen/phpbb-tool-trimmessage.git",
|
"url": "https://github.com/nickv-phpbb/phpbb-tool-trimmessage.git",
|
||||||
"reference": "0ed883bc2d473ec2e84cabb9c9395785daeeebcf"
|
"reference": "0ed883bc2d473ec2e84cabb9c9395785daeeebcf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nickvergessen/phpbb-tool-trimmessage/zipball/0ed883bc2d473ec2e84cabb9c9395785daeeebcf",
|
"url": "https://api.github.com/repos/nickv-phpbb/phpbb-tool-trimmessage/zipball/0ed883bc2d473ec2e84cabb9c9395785daeeebcf",
|
||||||
"reference": "0ed883bc2d473ec2e84cabb9c9395785daeeebcf",
|
"reference": "0ed883bc2d473ec2e84cabb9c9395785daeeebcf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpbb/epv/zipball/75df9936ffbb8f05a1351cf622cf6f41c7d2d9f2",
|
"url": "https://api.github.com/repos/phpbb/epv/zipball/d837a835dfdfdac233854d9e50d58565542764cb",
|
||||||
"reference": "75df9936ffbb8f05a1351cf622cf6f41c7d2d9f2",
|
"reference": "75df9936ffbb8f05a1351cf622cf6f41c7d2d9f2",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
|
|||||||
BIN
composer.phar
BIN
composer.phar
Binary file not shown.
@@ -33,9 +33,9 @@
|
|||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<br />
|
<br />
|
||||||
<object type="application/x-shockwave-flash" data="{T_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" width="140">
|
<object type="application/x-shockwave-flash" data="{T_EXT_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" width="140" height="140">
|
||||||
<param name="wmode" value="transparent" />
|
<param name="wmode" value="transparent" />
|
||||||
<param name="movie" value="{T_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" />
|
<param name="movie" value="{T_EXT_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" />
|
||||||
</object>
|
</object>
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|||||||
@@ -33,9 +33,9 @@
|
|||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<br />
|
<br />
|
||||||
<object type="application/x-shockwave-flash" data="{T_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" width="140">
|
<object type="application/x-shockwave-flash" data="{T_EXT_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" width="140" height="140">
|
||||||
<param name="wmode" value="transparent" />
|
<param name="wmode" value="transparent" />
|
||||||
<param name="movie" value="{T_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" />
|
<param name="movie" value="{T_EXT_THEME_PATH}/images/portal/{B3P_CLOCK_SRC}" />
|
||||||
</object>
|
</object>
|
||||||
</td>
|
</td>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|||||||
Reference in New Issue
Block a user